summaryrefslogtreecommitdiff
path: root/testing/resources/pixel
diff options
context:
space:
mode:
authordan sinclair <dsinclair@chromium.org>2017-07-10 11:42:34 -0400
committerChromium commit bot <commit-bot@chromium.org>2017-07-10 16:03:02 +0000
commit08c6651ec45b8cf01e6b6bbe8f57b1052554de94 (patch)
treecb9345929c1e638278fc4c22a3b18e48cb4af229 /testing/resources/pixel
parentb9eed2f50403e59c7aa414e272ae732d9bca0a7b (diff)
downloadpdfium-08c6651ec45b8cf01e6b6bbe8f57b1052554de94.tar.xz
Add combo box tests.
These tests pass under normal PDFium bug fail when Skia Paths is enabled. Bug: chromium:736695 Change-Id: I7e3e789ae25857060dd45940c313f5383c548d2c Reviewed-on: https://pdfium-review.googlesource.com/7450 Commit-Queue: dsinclair <dsinclair@chromium.org> Reviewed-by: Cary Clark <caryclark@google.com>
Diffstat (limited to 'testing/resources/pixel')
-rw-r--r--testing/resources/pixel/bug_736695_1.in60
-rw-r--r--testing/resources/pixel/bug_736695_1_expected.pdf.0.pngbin0 -> 2055 bytes
-rw-r--r--testing/resources/pixel/bug_736695_2.evt4
-rw-r--r--testing/resources/pixel/bug_736695_2.in60
-rw-r--r--testing/resources/pixel/bug_736695_2_expected.pdf.0.pngbin0 -> 4406 bytes
-rw-r--r--testing/resources/pixel/bug_736695_2_expected_mac.pdf.0.pngbin0 -> 4347 bytes
-rw-r--r--testing/resources/pixel/bug_736695_3.evt9
-rw-r--r--testing/resources/pixel/bug_736695_3.in60
-rw-r--r--testing/resources/pixel/bug_736695_3_expected.pdf.0.pngbin0 -> 2881 bytes
-rw-r--r--testing/resources/pixel/bug_736695_3_expected_mac.pdf.0.pngbin0 -> 2811 bytes
-rw-r--r--testing/resources/pixel/bug_736695_4.evt12
-rw-r--r--testing/resources/pixel/bug_736695_4.in60
-rw-r--r--testing/resources/pixel/bug_736695_4_expected.pdf.0.pngbin0 -> 2055 bytes
13 files changed, 265 insertions, 0 deletions
diff --git a/testing/resources/pixel/bug_736695_1.in b/testing/resources/pixel/bug_736695_1.in
new file mode 100644
index 0000000000..85a6d74c72
--- /dev/null
+++ b/testing/resources/pixel/bug_736695_1.in
@@ -0,0 +1,60 @@
+{{header}}
+
+{{object 1 0}}
+<<
+ /AcroForm << /Fields [ 9 0 R ] >>
+ /Pages 22 0 R
+ /Type /Catalog
+>>
+endobj
+
+{{object 9 0}}
+<<
+ /F 4
+ /FT /Ch
+ /Ff 393216
+ /Opt [ <feff0053007000610069006e> <feff00530077006500640065006e> ]
+ /P 21 0 R
+ /Rect [ 165.7 315.9 315.7 330.1 ]
+ /Subtype /Widget
+ /T (Country Box)
+ /Type /Annot
+>>
+endobj
+
+{{object 21 0}}
+<<
+ /Annots [ 9 0 R ]
+ /Contents 49 0 R
+ /MediaBox [ 0 0 595 342 ]
+ /Parent 22 0 R
+ /Type /Page
+>>
+endobj
+
+{{object 22 0}}
+<<
+ /Count 1
+ /Kids [ 21 0 R ]
+ /MediaBox [ 0 0 595 842 ]
+ /Type /Pages
+>>
+endobj
+
+{{object 49 0}}
+<< /Length 88 >>
+stream
+0.1 w
+0 0 0 RG
+1 1 1 rg
+q 0 0.1 595.2 841.8 re
+W* n
+163.1 313.1 155.3 19.9 re B*
+Q
+endstream
+endobj
+
+{{xref}}
+trailer<< /Root 1 0 R >>
+{{startxref}}
+%%EOF
diff --git a/testing/resources/pixel/bug_736695_1_expected.pdf.0.png b/testing/resources/pixel/bug_736695_1_expected.pdf.0.png
new file mode 100644
index 0000000000..99d7bd7443
--- /dev/null
+++ b/testing/resources/pixel/bug_736695_1_expected.pdf.0.png
Binary files differ
diff --git a/testing/resources/pixel/bug_736695_2.evt b/testing/resources/pixel/bug_736695_2.evt
new file mode 100644
index 0000000000..794dbf29aa
--- /dev/null
+++ b/testing/resources/pixel/bug_736695_2.evt
@@ -0,0 +1,4 @@
+# Open the dropdown to make sure it displays correctly.
+mousemove,312,324
+mousedown,left,312,324
+mouseup,left,312,324
diff --git a/testing/resources/pixel/bug_736695_2.in b/testing/resources/pixel/bug_736695_2.in
new file mode 100644
index 0000000000..85a6d74c72
--- /dev/null
+++ b/testing/resources/pixel/bug_736695_2.in
@@ -0,0 +1,60 @@
+{{header}}
+
+{{object 1 0}}
+<<
+ /AcroForm << /Fields [ 9 0 R ] >>
+ /Pages 22 0 R
+ /Type /Catalog
+>>
+endobj
+
+{{object 9 0}}
+<<
+ /F 4
+ /FT /Ch
+ /Ff 393216
+ /Opt [ <feff0053007000610069006e> <feff00530077006500640065006e> ]
+ /P 21 0 R
+ /Rect [ 165.7 315.9 315.7 330.1 ]
+ /Subtype /Widget
+ /T (Country Box)
+ /Type /Annot
+>>
+endobj
+
+{{object 21 0}}
+<<
+ /Annots [ 9 0 R ]
+ /Contents 49 0 R
+ /MediaBox [ 0 0 595 342 ]
+ /Parent 22 0 R
+ /Type /Page
+>>
+endobj
+
+{{object 22 0}}
+<<
+ /Count 1
+ /Kids [ 21 0 R ]
+ /MediaBox [ 0 0 595 842 ]
+ /Type /Pages
+>>
+endobj
+
+{{object 49 0}}
+<< /Length 88 >>
+stream
+0.1 w
+0 0 0 RG
+1 1 1 rg
+q 0 0.1 595.2 841.8 re
+W* n
+163.1 313.1 155.3 19.9 re B*
+Q
+endstream
+endobj
+
+{{xref}}
+trailer<< /Root 1 0 R >>
+{{startxref}}
+%%EOF
diff --git a/testing/resources/pixel/bug_736695_2_expected.pdf.0.png b/testing/resources/pixel/bug_736695_2_expected.pdf.0.png
new file mode 100644
index 0000000000..b89ef8f001
--- /dev/null
+++ b/testing/resources/pixel/bug_736695_2_expected.pdf.0.png
Binary files differ
diff --git a/testing/resources/pixel/bug_736695_2_expected_mac.pdf.0.png b/testing/resources/pixel/bug_736695_2_expected_mac.pdf.0.png
new file mode 100644
index 0000000000..46c70854d4
--- /dev/null
+++ b/testing/resources/pixel/bug_736695_2_expected_mac.pdf.0.png
Binary files differ
diff --git a/testing/resources/pixel/bug_736695_3.evt b/testing/resources/pixel/bug_736695_3.evt
new file mode 100644
index 0000000000..d64d591022
--- /dev/null
+++ b/testing/resources/pixel/bug_736695_3.evt
@@ -0,0 +1,9 @@
+# Open dropdown
+mousemove,312,324
+mousedown,left,312,324
+mouseup,left,312,324
+
+# Select item
+mousemove,312,310
+mousedown,left,312,310
+mouseup,left,312,310
diff --git a/testing/resources/pixel/bug_736695_3.in b/testing/resources/pixel/bug_736695_3.in
new file mode 100644
index 0000000000..85a6d74c72
--- /dev/null
+++ b/testing/resources/pixel/bug_736695_3.in
@@ -0,0 +1,60 @@
+{{header}}
+
+{{object 1 0}}
+<<
+ /AcroForm << /Fields [ 9 0 R ] >>
+ /Pages 22 0 R
+ /Type /Catalog
+>>
+endobj
+
+{{object 9 0}}
+<<
+ /F 4
+ /FT /Ch
+ /Ff 393216
+ /Opt [ <feff0053007000610069006e> <feff00530077006500640065006e> ]
+ /P 21 0 R
+ /Rect [ 165.7 315.9 315.7 330.1 ]
+ /Subtype /Widget
+ /T (Country Box)
+ /Type /Annot
+>>
+endobj
+
+{{object 21 0}}
+<<
+ /Annots [ 9 0 R ]
+ /Contents 49 0 R
+ /MediaBox [ 0 0 595 342 ]
+ /Parent 22 0 R
+ /Type /Page
+>>
+endobj
+
+{{object 22 0}}
+<<
+ /Count 1
+ /Kids [ 21 0 R ]
+ /MediaBox [ 0 0 595 842 ]
+ /Type /Pages
+>>
+endobj
+
+{{object 49 0}}
+<< /Length 88 >>
+stream
+0.1 w
+0 0 0 RG
+1 1 1 rg
+q 0 0.1 595.2 841.8 re
+W* n
+163.1 313.1 155.3 19.9 re B*
+Q
+endstream
+endobj
+
+{{xref}}
+trailer<< /Root 1 0 R >>
+{{startxref}}
+%%EOF
diff --git a/testing/resources/pixel/bug_736695_3_expected.pdf.0.png b/testing/resources/pixel/bug_736695_3_expected.pdf.0.png
new file mode 100644
index 0000000000..722a74e05c
--- /dev/null
+++ b/testing/resources/pixel/bug_736695_3_expected.pdf.0.png
Binary files differ
diff --git a/testing/resources/pixel/bug_736695_3_expected_mac.pdf.0.png b/testing/resources/pixel/bug_736695_3_expected_mac.pdf.0.png
new file mode 100644
index 0000000000..1abcd184f2
--- /dev/null
+++ b/testing/resources/pixel/bug_736695_3_expected_mac.pdf.0.png
Binary files differ
diff --git a/testing/resources/pixel/bug_736695_4.evt b/testing/resources/pixel/bug_736695_4.evt
new file mode 100644
index 0000000000..af591cb373
--- /dev/null
+++ b/testing/resources/pixel/bug_736695_4.evt
@@ -0,0 +1,12 @@
+# Open dropdown
+mousemove,312,324
+mousedown,left,312,324
+mouseup,left,312,324
+
+# Hover item
+mousemove,312,310
+
+# Select off
+mousemove,6,6
+mousedown,left,6,6
+mouseup,left,6,6
diff --git a/testing/resources/pixel/bug_736695_4.in b/testing/resources/pixel/bug_736695_4.in
new file mode 100644
index 0000000000..85a6d74c72
--- /dev/null
+++ b/testing/resources/pixel/bug_736695_4.in
@@ -0,0 +1,60 @@
+{{header}}
+
+{{object 1 0}}
+<<
+ /AcroForm << /Fields [ 9 0 R ] >>
+ /Pages 22 0 R
+ /Type /Catalog
+>>
+endobj
+
+{{object 9 0}}
+<<
+ /F 4
+ /FT /Ch
+ /Ff 393216
+ /Opt [ <feff0053007000610069006e> <feff00530077006500640065006e> ]
+ /P 21 0 R
+ /Rect [ 165.7 315.9 315.7 330.1 ]
+ /Subtype /Widget
+ /T (Country Box)
+ /Type /Annot
+>>
+endobj
+
+{{object 21 0}}
+<<
+ /Annots [ 9 0 R ]
+ /Contents 49 0 R
+ /MediaBox [ 0 0 595 342 ]
+ /Parent 22 0 R
+ /Type /Page
+>>
+endobj
+
+{{object 22 0}}
+<<
+ /Count 1
+ /Kids [ 21 0 R ]
+ /MediaBox [ 0 0 595 842 ]
+ /Type /Pages
+>>
+endobj
+
+{{object 49 0}}
+<< /Length 88 >>
+stream
+0.1 w
+0 0 0 RG
+1 1 1 rg
+q 0 0.1 595.2 841.8 re
+W* n
+163.1 313.1 155.3 19.9 re B*
+Q
+endstream
+endobj
+
+{{xref}}
+trailer<< /Root 1 0 R >>
+{{startxref}}
+%%EOF
diff --git a/testing/resources/pixel/bug_736695_4_expected.pdf.0.png b/testing/resources/pixel/bug_736695_4_expected.pdf.0.png
new file mode 100644
index 0000000000..99d7bd7443
--- /dev/null
+++ b/testing/resources/pixel/bug_736695_4_expected.pdf.0.png
Binary files differ