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

Unified Diff: testing/resources/pixel/endobj10.in

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/endobj10.in
diff --git a/testing/resources/hello_world.in b/testing/resources/pixel/endobj10.in
similarity index 74%
copy from testing/resources/hello_world.in
copy to testing/resources/pixel/endobj10.in
index 19fce0ce335de77ea31e295a87025eb52f65110e..d89132a97caac125325f1a3a780168f10f055f42 100644
--- a/testing/resources/hello_world.in
+++ b/testing/resources/pixel/endobj10.in
@@ -34,18 +34,21 @@ endobj
/BaseFont /Helvetica
>>
endobj
+% Case 10:
+% /Length identifies end of stream, and embedded endstream/endobj
+% keyword to trip us up, but missing endstream keyword.
{{object 6 0}} <<
+ /Length 97
>>
stream
BT
20 50 Td
/F1 12 Tf
-(Hello, world!) Tj
+(endstream is not text) Tj
0 50 Td
-/F2 16 Tf
-(Goodbye, world!) Tj
+/F2 13 Tf
+(endobj is not text) Tj
ET
-endstream
endobj
{{xref}}
trailer <<

Powered by Google App Engine
This is Rietveld 408576698