Index: tests/RegionTest.cpp |
diff --git a/tests/RegionTest.cpp b/tests/RegionTest.cpp |
index ae58ae6e2e07cb0b4c45b8469f8b7e51209c967b..acb81809de3bf4788d74a950928c740dfb6062d8 100644 |
--- a/tests/RegionTest.cpp |
+++ b/tests/RegionTest.cpp |
@@ -5,6 +5,7 @@ |
* found in the LICENSE file. |
*/ |
+#include "SkPath.h" |
#include "SkRandom.h" |
#include "SkRegion.h" |
#include "Test.h" |
@@ -91,6 +92,13 @@ static void test_empties(skiatest::Reporter* reporter) { |
REPORTER_ASSERT(reporter, !empty.contains(empty2)); |
REPORTER_ASSERT(reporter, !valid.contains(empty)); |
REPORTER_ASSERT(reporter, !empty.contains(valid)); |
+ |
+ SkPath emptyPath; |
+ emptyPath.moveTo(1, 5); |
+ emptyPath.close(); |
+ SkRegion openClip; |
+ openClip.setRect(-16000, -16000, 16000, 16000); |
+ empty.setPath(emptyPath, openClip); // should not assert |
} |
enum { |