| Index: tests/CanvasTest.cpp
|
| diff --git a/tests/CanvasTest.cpp b/tests/CanvasTest.cpp
|
| index 98cfbc158dcae6b959f19b36b7cd60c9fbcc612e..23d49834c23a2c27e82d60087e713bc0dd908688 100644
|
| --- a/tests/CanvasTest.cpp
|
| +++ b/tests/CanvasTest.cpp
|
| @@ -747,3 +747,19 @@ DEF_TEST(Canvas_SaveState, reporter) {
|
| canvas.restore();
|
| REPORTER_ASSERT(reporter, 1 == canvas.getSaveCount());
|
| }
|
| +
|
| +DEF_TEST(Canvas_ClipEmptyPath, reporter) {
|
| + SkCanvas canvas(10, 10);
|
| + canvas.save();
|
| + SkPath path;
|
| + canvas.clipPath(path);
|
| + canvas.restore();
|
| + canvas.save();
|
| + path.moveTo(5, 5);
|
| + canvas.clipPath(path);
|
| + canvas.restore();
|
| + canvas.save();
|
| + path.moveTo(7, 7);
|
| + canvas.clipPath(path); // should not assert here
|
| + canvas.restore();
|
| +}
|
|
|