aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/PDFDocumentTest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/PDFDocumentTest.cpp')
-rw-r--r--tests/PDFDocumentTest.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/PDFDocumentTest.cpp b/tests/PDFDocumentTest.cpp
index c3a5f0e041..995e35f8c0 100644
--- a/tests/PDFDocumentTest.cpp
+++ b/tests/PDFDocumentTest.cpp
@@ -154,3 +154,15 @@ DEF_TEST(document_dct_encoder, r) {
REPORTER_ASSERT(r, count_bytes(bm, true) < count_bytes(bm, false));
}
}
+
+DEF_TEST(document_skbug_4734, r) {
+ REQUIRE_PDF_DOCUMENT(document_skbug_4734, r);
+ SkDynamicMemoryWStream stream;
+ SkAutoTUnref<SkDocument> doc(SkDocument::CreatePDF(&stream));
+ SkCanvas* canvas = doc->beginPage(64, 64);
+ canvas->scale(10000.0f, 10000.0f);
+ canvas->translate(20.0f, 10.0f);
+ canvas->rotate(30.0f);
+ const char text[] = "HELLO";
+ canvas->drawText(text, strlen(text), 0, 0, SkPaint());
+}