Call xfa.host.pageUp(), pageDown(), and resetData() from JS tests.

Change-Id: If26d11fb3257fbd28dbab1d9765c0b426b4b8684
Reviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/65030
Reviewed-by: Lei Zhang <thestig@chromium.org>
Commit-Queue: Tom Sepez <tsepez@chromium.org>
diff --git a/testing/resources/javascript/xfa_specific/xfa_host_pseudomodel.in b/testing/resources/javascript/xfa_specific/xfa_host_pseudomodel.in
index ebfd4a2..7c3600e 100644
--- a/testing/resources/javascript/xfa_specific/xfa_host_pseudomodel.in
+++ b/testing/resources/javascript/xfa_specific/xfa_host_pseudomodel.in
@@ -68,6 +68,11 @@
         expect("xfa.host.openList('my_doc.subform_combox_0.combox')");
         expect("xfa.host.openList(eval('my_doc.subform_combox_0'))");
 
+        expect("xfa.host.pageUp()");
+        expect("xfa.host.pageUp('ignored arg')");
+        expect("xfa.host.pageDown()");
+        expect("xfa.host.pageDown('ignored arg')");
+
         expectError("xfa.host.print(1, 2, 3, 4, 5, 6, 7)");
         expectError("xfa.host.print(1, 2, 3, 4, 5, 6, 7, 8, 9)");
         expect("xfa.host.print(true, 1, 1, true, true, true, true, true)");
@@ -83,6 +88,10 @@
         expect("xfa.host.setFocus(eval('my_doc.subform_combox_0'))");
         expect("xfa.host.getFocus()", "[object XFAObject]");
 
+        expectError("xfa.host.resetData(1, 2)");
+        expect("xfa.host.resetData()");
+        expect("xfa.host.resetData('xfa.host')");
+
         app.alert("finished testing methods");
       </script>
     </event>
diff --git a/testing/resources/javascript/xfa_specific/xfa_host_pseudomodel_expected.txt b/testing/resources/javascript/xfa_specific/xfa_host_pseudomodel_expected.txt
index 5bd3d45..3835e4a 100644
--- a/testing/resources/javascript/xfa_specific/xfa_host_pseudomodel_expected.txt
+++ b/testing/resources/javascript/xfa_specific/xfa_host_pseudomodel_expected.txt
@@ -46,6 +46,10 @@
 Alert: PASS: xfa.host.openList(1, 2) threw XFAObject.openList: Incorrect number of parameters passed to function.
 Alert: PASS: xfa.host.openList('my_doc.subform_combox_0.combox') = undefined
 Alert: PASS: xfa.host.openList(eval('my_doc.subform_combox_0')) = undefined
+Alert: PASS: xfa.host.pageUp() = undefined
+Alert: PASS: xfa.host.pageUp('ignored arg') = undefined
+Alert: PASS: xfa.host.pageDown() = undefined
+Alert: PASS: xfa.host.pageDown('ignored arg') = undefined
 Alert: PASS: xfa.host.print(1, 2, 3, 4, 5, 6, 7) threw XFAObject.print: Incorrect number of parameters passed to function.
 Alert: PASS: xfa.host.print(1, 2, 3, 4, 5, 6, 7, 8, 9) threw XFAObject.print: Incorrect number of parameters passed to function.
 Doc Print: 1, 1, 1, 2, 4, 8, 16, 32
@@ -60,4 +64,7 @@
 Alert: PASS: xfa.host.getFocus() = [object XFAObject]
 Alert: PASS: xfa.host.setFocus(eval('my_doc.subform_combox_0')) = undefined
 Alert: PASS: xfa.host.getFocus() = [object XFAObject]
+Alert: PASS: xfa.host.resetData(1, 2) threw XFAObject.resetData: Incorrect number of parameters passed to function.
+Alert: PASS: xfa.host.resetData() = undefined
+Alert: PASS: xfa.host.resetData('xfa.host') = undefined
 Alert: finished testing methods