diff options
Diffstat (limited to 'tests/CanvasTest.cpp')
-rw-r--r-- | tests/CanvasTest.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/CanvasTest.cpp b/tests/CanvasTest.cpp index e84b7ba374..c35e7b0522 100644 --- a/tests/CanvasTest.cpp +++ b/tests/CanvasTest.cpp @@ -93,6 +93,12 @@ DEF_TEST(canvas_clipbounds, reporter) { REPORTER_ASSERT(reporter, rect == SkRect::MakeEmpty()); REPORTER_ASSERT(reporter, !canvas.getLocalClipBounds(&rect2)); REPORTER_ASSERT(reporter, rect == rect2); + + // Test for wacky sizes that we (historically) have guarded against + { + SkCanvas c(-10, -20); + REPORTER_ASSERT(reporter, c.getBaseLayerSize() == SkISize::MakeEmpty()); + } } static const int kWidth = 2, kHeight = 2; |