Call host.response() in xfa_host_pseudomodel javascript test. Change-Id: I77ee1721fcca6ed9538aac62d0531c550aeb04e5 Reviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/52170 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 4a3ed16..38e6880 100644 --- a/testing/resources/javascript/xfa_specific/xfa_host_pseudomodel.in +++ b/testing/resources/javascript/xfa_specific/xfa_host_pseudomodel.in
@@ -71,6 +71,10 @@ 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)"); + expectError("xfa.host.response()"); + expectError("xfa.host.response(1, 2, 3, 4, 5)"); + expect("xfa.host.response('Are you sure?', 'Launch Missiles', 'Yes', 1)", "No"); + expectError("xfa.host.setFocus()"); expectError("xfa.host.setFocus('one', 'two')"); expect("xfa.host.setFocus('my_doc.subform_combox_0')");
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 390d425..5bd3d45 100644 --- a/testing/resources/javascript/xfa_specific/xfa_host_pseudomodel_expected.txt +++ b/testing/resources/javascript/xfa_specific/xfa_host_pseudomodel_expected.txt
@@ -50,6 +50,10 @@ 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 Alert: PASS: xfa.host.print(true, 1, 1, true, true, true, true, true) = undefined +Alert: PASS: xfa.host.response() threw XFAObject.response: Incorrect number of parameters passed to function. +Alert: PASS: xfa.host.response(1, 2, 3, 4, 5) threw XFAObject.response: Incorrect number of parameters passed to function. +Launch Missiles: Are you sure?, defaultValue=Yes, label=, isPassword=1, length=2048 +Alert: PASS: xfa.host.response('Are you sure?', 'Launch Missiles', 'Yes', 1) = No Alert: PASS: xfa.host.setFocus() threw XFAObject.setFocus: Incorrect number of parameters passed to function. Alert: PASS: xfa.host.setFocus('one', 'two') threw XFAObject.setFocus: Incorrect number of parameters passed to function. Alert: PASS: xfa.host.setFocus('my_doc.subform_combox_0') = undefined