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>
diff --git a/testing/SUPPRESSIONS b/testing/SUPPRESSIONS
index 7e4b507..1f22c4c 100644
--- a/testing/SUPPRESSIONS
+++ b/testing/SUPPRESSIONS
@@ -316,17 +316,20 @@
 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 0000000..baef0b4
--- /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
similarity index 100%
copy from testing/resources/pixel/xfa_specific/resolve_nodes.pdf
copy to 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 0000000..d4cc442
--- /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 0000000..906fdcd
--- /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/pixel/xfa_specific/resolve_nodes.pdf b/testing/resources/javascript/xfa_specific/resolve_nodes_2.pdf
similarity index 100%
copy from testing/resources/pixel/xfa_specific/resolve_nodes.pdf
copy to 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 0000000..251a6ef
--- /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 0000000..e8518ab
--- /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.pdf b/testing/resources/pixel/xfa_specific/resolve_nodes_0.pdf
similarity index 100%
rename from testing/resources/pixel/xfa_specific/resolve_nodes.pdf
rename to 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 0000000..d7f1de6
--- /dev/null
+++ b/testing/resources/pixel/xfa_specific/resolve_nodes_0_expected.pdf.0.png
Binary files differ