diff options
author | 2013-01-23 20:12:31 +0000 | |
---|---|---|
committer | 2013-01-23 20:12:31 +0000 | |
commit | f91c63e116fda7385d9265a00d3302f46baf25c2 (patch) | |
tree | cca45ecc04f34a83df454b5fecc635e6cee0dc77 /tests | |
parent | ca43208e4aaac817fbc8265542f995f24a3fb7bf (diff) |
Revert r7341
git-svn-id: http://skia.googlecode.com/svn/trunk@7347 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'tests')
-rw-r--r-- | tests/PDFPrimitivesTest.cpp | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/tests/PDFPrimitivesTest.cpp b/tests/PDFPrimitivesTest.cpp index 6e7d61676d..42fc133b3c 100644 --- a/tests/PDFPrimitivesTest.cpp +++ b/tests/PDFPrimitivesTest.cpp @@ -8,11 +8,9 @@ #include "Test.h" -#include "SkCanvas.h" #include "SkData.h" #include "SkFlate.h" #include "SkPDFCatalog.h" -#include "SkPDFDevice.h" #include "SkPDFStream.h" #include "SkPDFTypes.h" #include "SkScalar.h" @@ -219,28 +217,6 @@ static void TestSubstitute(skiatest::Reporter* reporter) { buffer.getOffset())); } -// This test used to assert without the fix submitted for -// http://code.google.com/p/skia/issues/detail?id=1083. -// SKP files might have invalid glyph ids. This test ensures they are ignored, -// and there is no assert on input data in Debug mode. -static void test_issue1083(skiatest::Reporter* reporter) { - SkISize pageSize = SkISize::Make(100, 100); - SkPDFDevice* dev = new SkPDFDevice(pageSize, pageSize, SkMatrix::I()); - - SkCanvas c(dev); - SkPaint paint; - paint.setTextEncoding(SkPaint::kGlyphID_TextEncoding); - - uint16_t glyphID = 65000; - c.drawText(&glyphID, 2, 0, 0, paint); - - SkPDFDocument doc; - doc.appendPage(dev); - - SkDynamicMemoryWStream stream; - doc.emitPDF(&stream); -} - static void TestPDFPrimitives(skiatest::Reporter* reporter) { SkAutoTUnref<SkPDFInt> int42(new SkPDFInt(42)); SimpleCheckObjectOutput(reporter, int42.get(), "42"); @@ -322,8 +298,6 @@ static void TestPDFPrimitives(skiatest::Reporter* reporter) { TestObjectRef(reporter); TestSubstitute(reporter); - - test_issue1083(reporter); } #include "TestClassDef.h" |