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

Unified Diff: testing/resources/pixel/endobj2.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/endobj2.in
diff --git a/testing/resources/hello_world.in b/testing/resources/pixel/endobj2.in
similarity index 74%
copy from testing/resources/hello_world.in
copy to testing/resources/pixel/endobj2.in
index 19fce0ce335de77ea31e295a87025eb52f65110e..341fe7edb3c01c597350b20f86f8502c7a283e43 100644
--- a/testing/resources/hello_world.in
+++ b/testing/resources/pixel/endobj2.in
@@ -34,16 +34,19 @@ endobj
/BaseFont /Helvetica
>>
endobj
+% Case 4:
+% /Length identifies intended end of stream, but whitespace rather than
+% newline following the stream keyword.
{{object 6 0}} <<
+ /Length 97
>>
-stream
-BT
+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

Powered by Google App Engine
This is Rietveld 408576698