aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/PDFDocumentTest.cpp
diff options
context:
space:
mode:
authorGravatar halcanary <halcanary@google.com>2016-03-21 13:45:05 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-03-21 13:45:05 -0700
commit50e82e61766d22da5238905916a8abc3e6664060 (patch)
tree2370de762b461c22a0ef7123e2e5b5d8061010b5 /tests/PDFDocumentTest.cpp
parentb4bd11e66519f545282f914c67b54bf17cecab84 (diff)
SkPDF: SkPDFDocument reorganized so that some objects can be serialized early.
Diffstat (limited to 'tests/PDFDocumentTest.cpp')
-rw-r--r--tests/PDFDocumentTest.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/PDFDocumentTest.cpp b/tests/PDFDocumentTest.cpp
index 995e35f8c0..98d1864df1 100644
--- a/tests/PDFDocumentTest.cpp
+++ b/tests/PDFDocumentTest.cpp
@@ -33,7 +33,8 @@ static void test_abort(skiatest::Reporter* reporter) {
doc->abort();
- REPORTER_ASSERT(reporter, stream.bytesWritten() == 0);
+ // Test that only the header is written, not the full document.
+ REPORTER_ASSERT(reporter, stream.bytesWritten() < 256);
}
static void test_abortWithFile(skiatest::Reporter* reporter) {