From 08c6651ec45b8cf01e6b6bbe8f57b1052554de94 Mon Sep 17 00:00:00 2001 From: dan sinclair Date: Mon, 10 Jul 2017 11:42:34 -0400 Subject: 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 Reviewed-by: Cary Clark --- testing/resources/pixel/bug_736695_1.in | 60 +++++++++++++++++++++ .../pixel/bug_736695_1_expected.pdf.0.png | Bin 0 -> 2055 bytes testing/resources/pixel/bug_736695_2.evt | 4 ++ testing/resources/pixel/bug_736695_2.in | 60 +++++++++++++++++++++ .../pixel/bug_736695_2_expected.pdf.0.png | Bin 0 -> 4406 bytes .../pixel/bug_736695_2_expected_mac.pdf.0.png | Bin 0 -> 4347 bytes testing/resources/pixel/bug_736695_3.evt | 9 ++++ testing/resources/pixel/bug_736695_3.in | 60 +++++++++++++++++++++ .../pixel/bug_736695_3_expected.pdf.0.png | Bin 0 -> 2881 bytes .../pixel/bug_736695_3_expected_mac.pdf.0.png | Bin 0 -> 2811 bytes testing/resources/pixel/bug_736695_4.evt | 12 +++++ testing/resources/pixel/bug_736695_4.in | 60 +++++++++++++++++++++ .../pixel/bug_736695_4_expected.pdf.0.png | Bin 0 -> 2055 bytes 13 files changed, 265 insertions(+) create mode 100644 testing/resources/pixel/bug_736695_1.in create mode 100644 testing/resources/pixel/bug_736695_1_expected.pdf.0.png create mode 100644 testing/resources/pixel/bug_736695_2.evt create mode 100644 testing/resources/pixel/bug_736695_2.in create mode 100644 testing/resources/pixel/bug_736695_2_expected.pdf.0.png create mode 100644 testing/resources/pixel/bug_736695_2_expected_mac.pdf.0.png create mode 100644 testing/resources/pixel/bug_736695_3.evt create mode 100644 testing/resources/pixel/bug_736695_3.in create mode 100644 testing/resources/pixel/bug_736695_3_expected.pdf.0.png create mode 100644 testing/resources/pixel/bug_736695_3_expected_mac.pdf.0.png create mode 100644 testing/resources/pixel/bug_736695_4.evt create mode 100644 testing/resources/pixel/bug_736695_4.in create mode 100644 testing/resources/pixel/bug_736695_4_expected.pdf.0.png (limited to 'testing/resources/pixel') 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 [ ] + /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 Binary files /dev/null and b/testing/resources/pixel/bug_736695_1_expected.pdf.0.png 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 [ ] + /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 Binary files /dev/null and b/testing/resources/pixel/bug_736695_2_expected.pdf.0.png 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 Binary files /dev/null and b/testing/resources/pixel/bug_736695_2_expected_mac.pdf.0.png 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 [ ] + /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 Binary files /dev/null and b/testing/resources/pixel/bug_736695_3_expected.pdf.0.png 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 Binary files /dev/null and b/testing/resources/pixel/bug_736695_3_expected_mac.pdf.0.png 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 [ ] + /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 Binary files /dev/null and b/testing/resources/pixel/bug_736695_4_expected.pdf.0.png differ -- cgit v1.2.3