aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/SkLiteDLTest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/SkLiteDLTest.cpp')
-rw-r--r--tests/SkLiteDLTest.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/SkLiteDLTest.cpp b/tests/SkLiteDLTest.cpp
index 514464aaf9..d719c0bb76 100644
--- a/tests/SkLiteDLTest.cpp
+++ b/tests/SkLiteDLTest.cpp
@@ -51,3 +51,14 @@ DEF_TEST(SkLiteRecorder, r) {
c->drawRect(SkRect{0,0,9,9}, SkPaint{});
c->restore();
}
+
+DEF_TEST(SkLiteRecorder_RecordsFlush, r) {
+ SkLiteDL dl;
+
+ SkLiteRecorder canvas;
+ canvas.reset(&dl, {0,0,100,100});
+
+ REPORTER_ASSERT(r, dl.empty());
+ canvas.flush();
+ REPORTER_ASSERT(r, !dl.empty());
+}