Call two more app methods from JavaScript tests.

They both simply throw errors, but be sure they are covered.

Change-Id: I784a484352ae9878dbf515cd4d2b4e0222169db8
Reviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/62710
Reviewed-by: Lei Zhang <thestig@chromium.org>
Commit-Queue: Tom Sepez <tsepez@chromium.org>
diff --git a/testing/resources/javascript/app_methods.in b/testing/resources/javascript/app_methods.in
index 56b2a0c..81fa660 100644
--- a/testing/resources/javascript/app_methods.in
+++ b/testing/resources/javascript/app_methods.in
@@ -53,6 +53,7 @@
 
   expectError("app.browseForDoc()");
   expect("app.execDialog()", undefined);
+  expectError("app.execMenuItem()");
   expect("app.findComponent()", undefined);
   expect("app.goBack()", undefined);
   expect("app.goForward()", undefined);
@@ -62,6 +63,7 @@
   expectError("app.openDoc()");
   expect("app.openFDF()", undefined);
   expectError("app.popUpMenuEx()");
+  expectError("app.popUpMenu()");
 
   expect("app.mailMsg(true)", undefined);
   expect("app.mailMsg(false, 'user@example.com')", undefined);
diff --git a/testing/resources/javascript/app_methods_expected.txt b/testing/resources/javascript/app_methods_expected.txt
index 051584c..015ff28 100644
--- a/testing/resources/javascript/app_methods_expected.txt
+++ b/testing/resources/javascript/app_methods_expected.txt
@@ -27,6 +27,7 @@
 Alert: PASS: app.beep(1) = undefined
 Alert: FAIL: app.browseForDoc() = undefined, expected to throw
 Alert: PASS: app.execDialog() = undefined
+Alert: PASS: app.execMenuItem() threw app.execMenuItem: Operation not supported.
 Alert: PASS: app.findComponent() = undefined
 Alert: PASS: app.goBack() = undefined
 Alert: PASS: app.goForward() = undefined
@@ -36,6 +37,7 @@
 Alert: PASS: app.openDoc() threw app.openDoc: Operation not supported.
 Alert: PASS: app.openFDF() = undefined
 Alert: PASS: app.popUpMenuEx() threw app.popUpMenuEx: Operation not supported.
+Alert: PASS: app.popUpMenu() threw app.popUpMenu: Operation not supported.
 Mail Msg: 1, to=, cc=, bcc=, subject=, body=
 Alert: PASS: app.mailMsg(true) = undefined
 Mail Msg: 0, to=user@example.com, cc=, bcc=, subject=, body=