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

Unified Diff: testing/resources/pixel/endobj9.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/endobj9.in
diff --git a/testing/resources/hello_world.in b/testing/resources/pixel/endobj9.in
similarity index 75%
copy from testing/resources/hello_world.in
copy to testing/resources/pixel/endobj9.in
index 19fce0ce335de77ea31e295a87025eb52f65110e..fb156faa9f601982953cf68d4d95a9799811e458 100644
--- a/testing/resources/hello_world.in
+++ b/testing/resources/pixel/endobj9.in
@@ -34,16 +34,19 @@ endobj
/BaseFont /Helvetica
>>
endobj
+% Case 9:
+% No /Length to identify end of stream, but embedded endstream/endobj
+% keyword to trip us up. Should render nothing as text.
{{object 6 0}} <<
>>
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

Powered by Google App Engine
This is Rietveld 408576698