Index: tests/RecordPatternTest.cpp |
diff --git a/tests/RecordPatternTest.cpp b/tests/RecordPatternTest.cpp |
index e013150072102d6c23ffd1a70512824ad144a08c..4f51bdba2481a2c22ede9e8d667452dd3817c616 100644 |
--- a/tests/RecordPatternTest.cpp |
+++ b/tests/RecordPatternTest.cpp |
@@ -190,3 +190,13 @@ DEF_TEST(RecordPattern_Complex, r) { |
REPORTER_ASSERT(r, !pattern.search(&record, &begin, &end)); |
} |
+ |
+DEF_TEST(RecordPattern_SaveLayerIsNotADraw, r) { |
+ Pattern1<IsDraw> pattern; |
+ |
+ SkRecord record; |
+ SkRecorder recorder(SkRecorder::kWriteOnly_Mode, &record, 1920, 1200); |
+ recorder.saveLayer(NULL, NULL); |
+ |
+ REPORTER_ASSERT(r, !pattern.match(&record, 0)); |
+} |