diff options
author | Lei Zhang <thestig@chromium.org> | 2015-06-22 15:36:49 -0700 |
---|---|---|
committer | Lei Zhang <thestig@chromium.org> | 2015-06-22 15:36:49 -0700 |
commit | 0de47533e05ce7ca80c48156d50a217993e97288 (patch) | |
tree | 768a23fe639072ec95ca86c10319b30ddf7abbc2 /testing/resources/javascript/document_methods_expected.txt | |
parent | 6ea012325fca56a37b9adbda2d3549569d242271 (diff) | |
download | pdfium-0de47533e05ce7ca80c48156d50a217993e97288.tar.xz |
Fix Javascript tests after commit f55771af6429.chromium/2445chromium/2444chromium/2443chromium/2442chromium/2441chromium/2440
- Return true instead of false. All the other unsupported JS
functions return true.
- Adjust test expectations accordingly.
TBR=jam@chromium.org
Review URL: https://codereview.chromium.org/1196163006.
Diffstat (limited to 'testing/resources/javascript/document_methods_expected.txt')
-rw-r--r-- | testing/resources/javascript/document_methods_expected.txt | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/testing/resources/javascript/document_methods_expected.txt b/testing/resources/javascript/document_methods_expected.txt index 445b48d656..753a99df6e 100644 --- a/testing/resources/javascript/document_methods_expected.txt +++ b/testing/resources/javascript/document_methods_expected.txt @@ -14,6 +14,9 @@ Alert: PASS: this.closeDoc(1, 2, "clams", [1, 2, 3]) = undefined Alert: PASS: typeof this.createDataObject = function Alert: PASS: this.createDataObject() = undefined Alert: PASS: this.createDataObject(1, 2, "clams", [1, 2, 3]) = undefined +Alert: PASS: typeof this.deletePages = function +Alert: PASS: this.deletePages() = undefined +Alert: PASS: this.deletePages(1, 2, "clams", [1, 2, 3]) = undefined Alert: PASS: typeof this.exportAsFDF = function Alert: PASS: this.exportAsFDF() = undefined Alert: PASS: this.exportAsFDF(1, 2, "clams", [1, 2, 3]) = undefined @@ -59,6 +62,9 @@ Alert: PASS: this.importTextData(1, 2, "clams", [1, 2, 3]) = undefined Alert: PASS: typeof this.insertPages = function Alert: PASS: this.insertPages() = undefined Alert: PASS: this.insertPages(1, 2, "clams", [1, 2, 3]) = undefined +Alert: PASS: typeof this.removeIcon = function +Alert: PASS: this.removeIcon() = undefined +Alert: PASS: this.removeIcon(1, 2, "clams", [1, 2, 3]) = undefined Alert: PASS: typeof this.replacePages = function Alert: PASS: this.replacePages() = undefined Alert: PASS: this.replacePages(1, 2, "clams", [1, 2, 3]) = undefined @@ -72,7 +78,6 @@ Alert: PASS: this.addIcon(1) threw error Document.addIcon: Incorrect number of p 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: typeof this.calculateNow = function -Alert: PASS: typeof this.deletePages = function Alert: PASS: typeof this.getField = function Alert: PASS: this.getField() threw error Document.getField: Incorrect number of parameters passed to function. Alert: PASS: typeof this.getIcon = function @@ -96,8 +101,6 @@ Alert: PASS: typeof this.mailForm = function Alert: PASS: typeof this.print = function Alert: PASS: typeof this.removeField = function Alert: PASS: this.removeField() threw error Document.removeField: Incorrect number of parameters passed to function. -Alert: PASS: typeof this.removeIcon = function -Alert: PASS: this.removeIcon() threw error Document.removeIcon: Incorrect number of parameters passed to function. Alert: PASS: typeof this.resetForm = function Alert: PASS: typeof this.submitForm = function Alert: PASS: this.submitForm() threw error Document.submitForm: Incorrect number of parameters passed to function. |