diff options
author | Tom Sepez <tsepez@chromium.org> | 2015-10-14 09:26:32 -0700 |
---|---|---|
committer | Tom Sepez <tsepez@chromium.org> | 2015-10-14 09:26:32 -0700 |
commit | 758ae14e113c07285126274577d7a5cab559fa65 (patch) | |
tree | f8725d73309e87d59e5279db86eae70aedfe922e /testing/resources/bookmarks.in | |
parent | 468e5896007c7fe7bb283c0161d807a76f403308 (diff) | |
download | pdfium-758ae14e113c07285126274577d7a5cab559fa65.tar.xz |
Merge to XFA: Add unit test for top-level bookmarks.
Original Review URL: https://codereview.chromium.org/1404723002 .
(cherry picked from commit 7d54a9f70f977ce9b72959ef55dc6300713ccafe)
R=thestig@chromium.org
TBR=thestig@chromium.org
Review URL: https://codereview.chromium.org/1404193002 .
Diffstat (limited to 'testing/resources/bookmarks.in')
-rw-r--r-- | testing/resources/bookmarks.in | 98 |
1 files changed, 98 insertions, 0 deletions
diff --git a/testing/resources/bookmarks.in b/testing/resources/bookmarks.in new file mode 100644 index 0000000000..dfa6e1426f --- /dev/null +++ b/testing/resources/bookmarks.in @@ -0,0 +1,98 @@ +{{header}} +{{object 1 0}} << + /Type /Catalog + /Pages 2 0 R + /Outlines 14 0 R +>> +endobj +{{object 2 0}} << + /Type /Pages + /Count 2 + /Kids [ + 3 0 R + 4 0 R + ] +>> +endobj +% Page number 0. +{{object 3 0}} << + /Type /Page + /Parent 2 0 R + /Resources << + /Font <</F1 15 0 R>> + >> + /Contents [21 0 R] + /MediaBox [0 0 612 792] +>> +endobj +% Page number 1. +{{object 4 0}} << + /Type /Page + /Parent 2 0 R + /Resources << + /Font <</F1 15 0 R>> + >> + /Contents [22 0 R] + /MediaBox [0 0 612 792] +>> +endobj +% First bookmark +{{object 10 0}} << + /Title (A Good Beginning) + /Parent 14 0 R + /Next 11 0 R + /Dest (foo) +>> +endobj +% Last bookmark +{{object 11 0}} << + /Title (A Good Ending) + /Parent 14 0 R + /Prev 10 0 R + /Dest (bar) +>> +endobj +% Root bookmark +{{object 14 0}} << + /Type /Outlines + /First 10 0 R + /Last 11 0 R + /Count 2 +>> +endobj +% Font resource. +{{object 15 0}} << + /Type /Font + /Subtype /Type1 + /BaseFont /Arial +>> +endobj +% Content for page 0. +{{object 21 0}} << + /Length 0 +>> +stream +BT +/F1 20 Tf +100 600 TD (Page1)Tj +ET +endstream +endobj +% Content for page 1. +{{object 22 0}} << + /Length 0 +>> +stream +BT +/F1 20 Tf +100 600 TD (Page2)Tj +ET +endstream +endobj +{{xref}} +trailer << + /Size 6 + /Root 1 0 R +>> +{{startxref}} +%%EOF |