diff options
author | dan sinclair <dsinclair@chromium.org> | 2017-07-10 11:42:34 -0400 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-07-10 16:03:02 +0000 |
commit | 08c6651ec45b8cf01e6b6bbe8f57b1052554de94 (patch) | |
tree | cb9345929c1e638278fc4c22a3b18e48cb4af229 /testing/resources/pixel | |
parent | b9eed2f50403e59c7aa414e272ae732d9bca0a7b (diff) | |
download | pdfium-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.in | 60 | ||||
-rw-r--r-- | testing/resources/pixel/bug_736695_1_expected.pdf.0.png | bin | 0 -> 2055 bytes | |||
-rw-r--r-- | testing/resources/pixel/bug_736695_2.evt | 4 | ||||
-rw-r--r-- | testing/resources/pixel/bug_736695_2.in | 60 | ||||
-rw-r--r-- | testing/resources/pixel/bug_736695_2_expected.pdf.0.png | bin | 0 -> 4406 bytes | |||
-rw-r--r-- | testing/resources/pixel/bug_736695_2_expected_mac.pdf.0.png | bin | 0 -> 4347 bytes | |||
-rw-r--r-- | testing/resources/pixel/bug_736695_3.evt | 9 | ||||
-rw-r--r-- | testing/resources/pixel/bug_736695_3.in | 60 | ||||
-rw-r--r-- | testing/resources/pixel/bug_736695_3_expected.pdf.0.png | bin | 0 -> 2881 bytes | |||
-rw-r--r-- | testing/resources/pixel/bug_736695_3_expected_mac.pdf.0.png | bin | 0 -> 2811 bytes | |||
-rw-r--r-- | testing/resources/pixel/bug_736695_4.evt | 12 | ||||
-rw-r--r-- | testing/resources/pixel/bug_736695_4.in | 60 | ||||
-rw-r--r-- | testing/resources/pixel/bug_736695_4_expected.pdf.0.png | bin | 0 -> 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 Binary files differnew file mode 100644 index 0000000000..99d7bd7443 --- /dev/null +++ b/testing/resources/pixel/bug_736695_1_expected.pdf.0.png 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 Binary files differnew file mode 100644 index 0000000000..b89ef8f001 --- /dev/null +++ b/testing/resources/pixel/bug_736695_2_expected.pdf.0.png 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 Binary files differnew file mode 100644 index 0000000000..46c70854d4 --- /dev/null +++ b/testing/resources/pixel/bug_736695_2_expected_mac.pdf.0.png 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 Binary files differnew file mode 100644 index 0000000000..722a74e05c --- /dev/null +++ b/testing/resources/pixel/bug_736695_3_expected.pdf.0.png 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 Binary files differnew file mode 100644 index 0000000000..1abcd184f2 --- /dev/null +++ b/testing/resources/pixel/bug_736695_3_expected_mac.pdf.0.png 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 Binary files differnew file mode 100644 index 0000000000..99d7bd7443 --- /dev/null +++ b/testing/resources/pixel/bug_736695_4_expected.pdf.0.png |