From aecd9d0c5cfc569269bfe6cc228efaab76a7bb1b Mon Sep 17 00:00:00 2001 From: Tom Sepez Date: Mon, 31 Aug 2015 15:04:12 -0700 Subject: Merge to XFA: Fix two issues shown by bug 489995 (cherry picked from commit 6e369c2ebb4769a42736b32154c0de12b73df45d) Original Review URL: https://codereview.chromium.org/1327473002 . BUG=489995 R=thestig@chromium.org TBR=thestig@chromium.org Review URL: https://codereview.chromium.org/1325743002 . --- testing/resources/javascript/document_methods.in | 1 + testing/resources/javascript/document_methods_expected.txt | 1 + 2 files changed, 2 insertions(+) (limited to 'testing') diff --git a/testing/resources/javascript/document_methods.in b/testing/resources/javascript/document_methods.in index 662c05c8e0..cd43e32070 100644 --- a/testing/resources/javascript/document_methods.in +++ b/testing/resources/javascript/document_methods.in @@ -122,6 +122,7 @@ function testAddIcon() { // Second argument must actually be an icon. expectError('this.addIcon("myicon", 3)'); + expectError('this.addIcon("myicon", undefined)'); // TODO(tsepez): test success cases. } diff --git a/testing/resources/javascript/document_methods_expected.txt b/testing/resources/javascript/document_methods_expected.txt index 445b48d656..b373e9cb1b 100644 --- a/testing/resources/javascript/document_methods_expected.txt +++ b/testing/resources/javascript/document_methods_expected.txt @@ -71,6 +71,7 @@ Alert: PASS: this.addIcon() threw error Document.addIcon: Incorrect number of pa Alert: PASS: this.addIcon(1) threw error Document.addIcon: Incorrect number of parameters passed to function. Alert: PASS: this.addIcon(1, 2, 3) threw error Document.addIcon: Incorrect number of parameters passed to function. Alert: PASS: this.addIcon("myicon", 3) threw error Document.addIcon: Incorrect parameter type. +Alert: PASS: this.addIcon("myicon", undefined) threw error Document.addIcon: Incorrect parameter type. Alert: PASS: typeof this.calculateNow = function Alert: PASS: typeof this.deletePages = function Alert: PASS: typeof this.getField = function -- cgit v1.2.3