Index: tests/CanvasTest.cpp |
diff --git a/tests/CanvasTest.cpp b/tests/CanvasTest.cpp |
index 78253ac900166f590bc28aa0087af40738813ebb..0a6ba0d0046641509dff6f5a04895a66b4bbd02e 100644 |
--- a/tests/CanvasTest.cpp |
+++ b/tests/CanvasTest.cpp |
@@ -568,8 +568,9 @@ static void TestPdfDevice(skiatest::Reporter* reporter, |
CanvasTestStep* testStep) { |
SkDynamicMemoryWStream outStream; |
SkAutoTUnref<SkDocument> doc(SkDocument::CreatePDF(&outStream)); |
-#if SK_SUPPORT_PDF |
- REPORTER_ASSERT(reporter, doc); |
+ if (!doc) { |
+ return; |
reed1
2015/08/11 19:08:47
Should we assert that we failed only when PDF was
hal.canary
2015/08/11 20:26:15
Done.
|
+ } |
SkCanvas* canvas = doc->beginPage(SkIntToScalar(d.fWidth), |
SkIntToScalar(d.fHeight)); |
REPORTER_ASSERT(reporter, canvas); |
@@ -577,9 +578,6 @@ static void TestPdfDevice(skiatest::Reporter* reporter, |
testStep->draw(canvas, d, reporter); |
REPORTER_ASSERT(reporter, doc->close()); |
-#else |
- REPORTER_ASSERT(reporter, !doc); |
-#endif // SK_SUPPORT_PDF |
} |
// The following class groups static functions that need to access |