summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Harrison <rharrison@chromium.org>2018-06-07 20:36:23 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-06-07 20:36:23 +0000
commit2c457887402151cfde8ac4842af0c2248eb840a9 (patch)
treed265acd04d408a2a33ba0325c0190d60de68770a
parent888af47eec5784c1919200087769b7e58e5efd02 (diff)
downloadpdfium-2c457887402151cfde8ac4842af0c2248eb840a9.tar.xz
Convert resolve_nodes.pdf into 3 test cases
There are 3 elements in the PDF that can be interacted with that cause testable output. This CL creates test cases for each of these elements. 2 of them work correctly, and a new bug, pdfium:1106, has been filed for the third. BUG=pdfium:1020 Change-Id: I524911d03927a0eeeee1d1479e1a855f90269e8e Reviewed-on: https://pdfium-review.googlesource.com/34370 Reviewed-by: Henrique Nakashima <hnakashima@chromium.org> Commit-Queue: Ryan Harrison <rharrison@chromium.org>
-rw-r--r--testing/SUPPRESSIONS7
-rw-r--r--testing/resources/javascript/xfa_specific/resolve_nodes_1.evt3
-rw-r--r--testing/resources/javascript/xfa_specific/resolve_nodes_1.pdf (renamed from testing/resources/pixel/xfa_specific/resolve_nodes.pdf)bin213700 -> 213700 bytes
-rw-r--r--testing/resources/javascript/xfa_specific/resolve_nodes_1_expected.txt1
-rw-r--r--testing/resources/javascript/xfa_specific/resolve_nodes_2.evt3
-rw-r--r--testing/resources/javascript/xfa_specific/resolve_nodes_2.pdfbin0 -> 213700 bytes
-rw-r--r--testing/resources/javascript/xfa_specific/resolve_nodes_2_expected.txt1
-rw-r--r--testing/resources/pixel/xfa_specific/resolve_nodes_0.evt3
-rw-r--r--testing/resources/pixel/xfa_specific/resolve_nodes_0.pdfbin0 -> 213700 bytes
-rw-r--r--testing/resources/pixel/xfa_specific/resolve_nodes_0_expected.pdf.0.pngbin0 -> 75004 bytes
10 files changed, 16 insertions, 2 deletions
diff --git a/testing/SUPPRESSIONS b/testing/SUPPRESSIONS
index 7e4b507d9f..1f22c4c4b5 100644
--- a/testing/SUPPRESSIONS
+++ b/testing/SUPPRESSIONS
@@ -316,17 +316,20 @@ bug_679642.in * * noxfa
bug_679643.in * * noxfa
bug_735912.in * * noxfa
+# xfa_specific
+
+TODO(dsinclair): Remove after pdfium:1106 is fixed
+resolve_nodes_1.pdf * * *
+
#
# Pixel tests
#
bug_492.in * nov8 *
-#
# xfa_specific
# TODO(rharrison): Create expectations for existing files.
dynamic_list_box_allow_multiple_selection.pdf * * *
-resolve_nodes.pdf * * *
standard_symbols.pdf * * *
# TODO(rharrison): Remove after pdfium:1095 is fixed
xfa_example.in win * *
diff --git a/testing/resources/javascript/xfa_specific/resolve_nodes_1.evt b/testing/resources/javascript/xfa_specific/resolve_nodes_1.evt
new file mode 100644
index 0000000000..baef0b419f
--- /dev/null
+++ b/testing/resources/javascript/xfa_specific/resolve_nodes_1.evt
@@ -0,0 +1,3 @@
+mousedown,left,400,30
+mouseup,left,400,30
+
diff --git a/testing/resources/pixel/xfa_specific/resolve_nodes.pdf b/testing/resources/javascript/xfa_specific/resolve_nodes_1.pdf
index 9694f7fe50..9694f7fe50 100644
--- a/testing/resources/pixel/xfa_specific/resolve_nodes.pdf
+++ b/testing/resources/javascript/xfa_specific/resolve_nodes_1.pdf
Binary files differ
diff --git a/testing/resources/javascript/xfa_specific/resolve_nodes_1_expected.txt b/testing/resources/javascript/xfa_specific/resolve_nodes_1_expected.txt
new file mode 100644
index 0000000000..d4cc4424d3
--- /dev/null
+++ b/testing/resources/javascript/xfa_specific/resolve_nodes_1_expected.txt
@@ -0,0 +1 @@
+: \Find 1 items
diff --git a/testing/resources/javascript/xfa_specific/resolve_nodes_2.evt b/testing/resources/javascript/xfa_specific/resolve_nodes_2.evt
new file mode 100644
index 0000000000..906fdcd905
--- /dev/null
+++ b/testing/resources/javascript/xfa_specific/resolve_nodes_2.evt
@@ -0,0 +1,3 @@
+mousedown,left,43,94
+mouseup,left,43,94
+
diff --git a/testing/resources/javascript/xfa_specific/resolve_nodes_2.pdf b/testing/resources/javascript/xfa_specific/resolve_nodes_2.pdf
new file mode 100644
index 0000000000..9694f7fe50
--- /dev/null
+++ b/testing/resources/javascript/xfa_specific/resolve_nodes_2.pdf
Binary files differ
diff --git a/testing/resources/javascript/xfa_specific/resolve_nodes_2_expected.txt b/testing/resources/javascript/xfa_specific/resolve_nodes_2_expected.txt
new file mode 100644
index 0000000000..251a6ef43f
--- /dev/null
+++ b/testing/resources/javascript/xfa_specific/resolve_nodes_2_expected.txt
@@ -0,0 +1 @@
+: field
diff --git a/testing/resources/pixel/xfa_specific/resolve_nodes_0.evt b/testing/resources/pixel/xfa_specific/resolve_nodes_0.evt
new file mode 100644
index 0000000000..e8518ab82c
--- /dev/null
+++ b/testing/resources/pixel/xfa_specific/resolve_nodes_0.evt
@@ -0,0 +1,3 @@
+mousedown,left,550,30
+mouseup,left,550,30
+
diff --git a/testing/resources/pixel/xfa_specific/resolve_nodes_0.pdf b/testing/resources/pixel/xfa_specific/resolve_nodes_0.pdf
new file mode 100644
index 0000000000..9694f7fe50
--- /dev/null
+++ b/testing/resources/pixel/xfa_specific/resolve_nodes_0.pdf
Binary files differ
diff --git a/testing/resources/pixel/xfa_specific/resolve_nodes_0_expected.pdf.0.png b/testing/resources/pixel/xfa_specific/resolve_nodes_0_expected.pdf.0.png
new file mode 100644
index 0000000000..d7f1de629e
--- /dev/null
+++ b/testing/resources/pixel/xfa_specific/resolve_nodes_0_expected.pdf.0.png
Binary files differ