summaryrefslogtreecommitdiff
path: root/testing/resources/weblinks.in
diff options
context:
space:
mode:
authorTom Sepez <tsepez@chromium.org>2015-01-28 15:55:04 -0800
committerTom Sepez <tsepez@chromium.org>2015-01-28 15:55:04 -0800
commit90f9e6180384672db231e52c417c55c6f8a5872a (patch)
tree20fcaa0123892800eeae7ae8baa86456645a49ff /testing/resources/weblinks.in
parent506e6dc4649803ab56ef60d73d9a896f1876a7e6 (diff)
downloadpdfium-90f9e6180384672db231e52c417c55c6f8a5872a.tar.xz
Merge to Master: Cover fpdftext.h API with embeddertests.
Original Review URL: https://codereview.chromium.org/878333003 TBR=thestig@chromium.org Review URL: https://codereview.chromium.org/884873002
Diffstat (limited to 'testing/resources/weblinks.in')
-rw-r--r--testing/resources/weblinks.in66
1 files changed, 66 insertions, 0 deletions
diff --git a/testing/resources/weblinks.in b/testing/resources/weblinks.in
new file mode 100644
index 0000000000..ed20b2e642
--- /dev/null
+++ b/testing/resources/weblinks.in
@@ -0,0 +1,66 @@
+{{header}}
+{{object 1 0}} <<
+ /Type /Catalog
+ /Pages 2 0 R
+>>
+{{object 2 0}} <<
+ /Type /Pages
+ /MediaBox [ 0 0 600 600 ]
+ /Count 1
+ /Kids [ 3 0 R ]
+>>
+endobj
+{{object 3 0}} <<
+ /Type /Page
+ /Parent 2 0 R
+ /Resources <<
+ /Font <<
+ /F1 4 0 R
+ /F2 5 0 R
+ >>
+ >>
+ /Contents 6 0 R
+>>
+endobj
+{{object 4 0}} <<
+ /Type /Font
+ /Subtype /Type1
+ /BaseFont /Times-Roman
+>>
+endobj
+{{object 4 0}} <<
+ /Type /Font
+ /Subtype /Type1
+ /BaseFont /Helvetica
+>>
+endobj
+{{object 6 0}} <<
+>>
+stream
+BT
+/F1 12 Tf
+50 50 Td
+(Hello, world! This is not a link.) Tj
+0 50 Td
+(http://example.com?q=foo. This might be a link.) Tj
+/F2 16 Tf
+0 50 Td
+(https://example.com?q=foo. This might be a link in another font.) Tj
+0 50 Td
+(javascript:alert(0). This might be a JS link.) Tj
+0 50 Td
+(ftp://example.org. This might be a FTP link.) Tj
+0 50 Td
+(file:///home/foo/example.txt. This might be a file link.) Tj
+0 50 Td
+(This is a rather long and pointless piece of non-link text.) Tj
+ET
+endstream
+endobj
+{{xref}}
+trailer <<
+ /Size 6
+ /Root 1 0 R
+>>
+{{startxref}}
+%%EOF