diff options
Diffstat (limited to 'tests/GrContextFactoryTest.cpp')
-rw-r--r-- | tests/GrContextFactoryTest.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/GrContextFactoryTest.cpp b/tests/GrContextFactoryTest.cpp index d4d5667152..098b2d61a9 100644 --- a/tests/GrContextFactoryTest.cpp +++ b/tests/GrContextFactoryTest.cpp @@ -139,4 +139,10 @@ DEF_GPUTEST(GrContextFactory_sharedContexts, reporter, /*factory*/) { } } +DEF_GPUTEST_FOR_ALL_CONTEXTS(GrContextDump, reporter, ctxInfo) { + // Ensure that GrContext::dump doesn't assert (which is possible, if the JSON code is wrong) + SkString result = ctxInfo.grContext()->dump(); + REPORTER_ASSERT(reporter, !result.isEmpty()); +} + #endif |