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/bookmarks.in

Issue 1404723002: Add unit test for top-level bookmarks. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Better test, flunks on early !pDict return. Created 5 years, 2 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
« no previous file with comments | « fpdfsdk/src/fpdfdoc_embeddertest.cpp ('k') | testing/resources/bookmarks.pdf » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: testing/resources/bookmarks.in
diff --git a/testing/resources/named_dests.in b/testing/resources/bookmarks.in
similarity index 60%
copy from testing/resources/named_dests.in
copy to testing/resources/bookmarks.in
index 5309ee23aabddf4ef057fecfc07d9aa5bea429ca..dfa6e1426f6f4ceb6b9a40b5b6665ba22524fc37 100644
--- a/testing/resources/named_dests.in
+++ b/testing/resources/bookmarks.in
@@ -2,10 +2,7 @@
{{object 1 0}} <<
/Type /Catalog
/Pages 2 0 R
- /Names <<
- /Dests 10 0 R
- >>
- /Dests 14 0 R
+ /Outlines 14 0 R
>>
endobj
{{object 2 0}} <<
@@ -39,36 +36,28 @@ endobj
/MediaBox [0 0 612 792]
>>
endobj
-% Root of Dests NameTree
+% First bookmark
{{object 10 0}} <<
- /Kids [
- 11 0 R
- 12 0 R
- ]
+ /Title (A Good Beginning)
+ /Parent 14 0 R
+ /Next 11 0 R
+ /Dest (foo)
>>
endobj
-% Left child for Dests NameTree
+% Last bookmark
{{object 11 0}} <<
- /Names [
- (First) [1 /XYZ 0 0 1]
- (Next) <</D [4 0 R /Fit]>>
- ]
+ /Title (A Good Ending)
+ /Parent 14 0 R
+ /Prev 10 0 R
+ /Dest (bar)
>>
endobj
-% Right child for Dests NameTree
-{{object 12 0}} <<
- /Names [
- (WrongKey) <</Fail [10 /FitH]>>
- (WrongType) /NameNotAllowedHere
- ]
->>
-endobj
-% Old-style top-level Dests dictionary. Note that FirstAlternate
-% intentionally references non-exisstant page 11 and LastAlternate
-% intentionally references non-existant object 999.
+% Root bookmark
{{object 14 0}} <<
- /FirstAlternate [11 /XYZ 200 400 800]
- /LastAlternate <</D [999 0 R /XYZ 0 0 -200]>>
+ /Type /Outlines
+ /First 10 0 R
+ /Last 11 0 R
+ /Count 2
>>
endobj
% Font resource.
« no previous file with comments | « fpdfsdk/src/fpdfdoc_embeddertest.cpp ('k') | testing/resources/bookmarks.pdf » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698