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

Unified Diff: testing/resources/pixel/endobj3.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/endobj3.in
diff --git a/testing/resources/hello_world.in b/testing/resources/pixel/endobj3.in
similarity index 73%
copy from testing/resources/hello_world.in
copy to testing/resources/pixel/endobj3.in
index 19fce0ce335de77ea31e295a87025eb52f65110e..11f5a99480b5ceabdd0efcd3231e43f437de120a 100644
--- a/testing/resources/hello_world.in
+++ b/testing/resources/pixel/endobj3.in
@@ -34,19 +34,22 @@ endobj
/BaseFont /Helvetica
>>
endobj
+% Case 3:
+% /Length identifies intended end of stream, but whitespace rather than
+% newline following the endstream keyword.
{{object 6 0}} <<
+ /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}}
trailer <<
/Size 6

Powered by Google App Engine
This is Rietveld 408576698