Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(9)

Unified Diff: testing/resources/pixel/endobj3.pdf

Issue 1232803005: Add test case for parsing endobj keywords. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Added a few more tests. Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: testing/resources/pixel/endobj3.pdf
diff --git a/testing/resources/hello_world.pdf b/testing/resources/pixel/endobj3.pdf
similarity index 73%
copy from testing/resources/hello_world.pdf
copy to testing/resources/pixel/endobj3.pdf
index bb4f0a88e7aedbbdbe4bdc6b22ff0696bed0282b..65f3b1335d6acabbdab767d4e863f598560b8efb 100644
--- a/testing/resources/hello_world.pdf
+++ b/testing/resources/pixel/endobj3.pdf
@@ -35,19 +35,22 @@ endobj
/BaseFont /Helvetica
>>
endobj
+% Case 3:
+% /Length identifies intended end of stream, but whitespace rather than
+% newline following the endstream keyword.
6 0 obj <<
+ /Length 97
>>
stream
BT
20 50 Td
/F1 12 Tf
-(Hello, world!) Tj
+(endobj is text) Tj
0 50 Td
-/F2 16 Tf
-(Goodbye, world!) Tj
+/F2 13 Tf
+(endstream is text per /Length) Tj
ET
-endstream
-endobj
+endstream endobj
xref
0 7
0000000000 65535 f
@@ -56,11 +59,11 @@ xref
0000000154 00000 n
0000000296 00000 n
0000000374 00000 n
-0000000450 00000 n
+0000000579 00000 n
trailer <<
/Size 6
/Root 1 0 R
>>
startxref
-571
+728
%%EOF

Powered by Google App Engine
This is Rietveld 408576698