diff options
author | Tom Sepez <tsepez@chromium.org> | 2018-10-12 20:27:15 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-10-12 20:27:15 +0000 |
commit | 305bf6b818d4c3de8fe066dd736424f2e75b55b3 (patch) | |
tree | 0489e863ac0ecc1dd2178b2896678b16d0c62e48 /testing/resources/javascript/document_methods_expected.txt | |
parent | 995374a5df93181bbdfb75a808c76c7efed45dcd (diff) | |
download | pdfium-305bf6b818d4c3de8fe066dd736424f2e75b55b3.tar.xz |
Beef up CJS_Document method coverage.
Also alphabetize mailDoc method position in .cpp file.
Change-Id: Ifb53e9a6f5f165bb41b865d51dae15e3bc84c4c7
Reviewed-on: https://pdfium-review.googlesource.com/c/43972
Reviewed-by: Lei Zhang <thestig@chromium.org>
Commit-Queue: Tom Sepez <tsepez@chromium.org>
Diffstat (limited to 'testing/resources/javascript/document_methods_expected.txt')
-rw-r--r-- | testing/resources/javascript/document_methods_expected.txt | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/testing/resources/javascript/document_methods_expected.txt b/testing/resources/javascript/document_methods_expected.txt index 4a2c4d7ee6..01bf0ed0bd 100644 --- a/testing/resources/javascript/document_methods_expected.txt +++ b/testing/resources/javascript/document_methods_expected.txt @@ -89,6 +89,8 @@ Alert: PASS: this.getIcon(1, 2) threw error Document.getIcon: Incorrect number o Alert: PASS: typeof this.getNthFieldName = function Alert: PASS: this.getNthFieldName() threw error Document.getNthFieldName: Incorrect number of parameters passed to function. Alert: PASS: this.getNthFieldName(-1) threw error Document.getNthFieldName: Incorrect parameter value. +Alert: PASS: this.getNthFieldName(400000) threw error Document.getNthFieldName: Object no longer exists. +Alert: PASS: this.getNthFieldName(0) threw error Document.getNthFieldName: Object no longer exists. Alert: PASS: typeof this.getPageNthWord = function Alert: PASS: this.getPageNthWord(0, 0, true, "clams", [1, 2]) = Hello, Alert: PASS: this.getPageNthWord(-1, 0, true) threw error Document.getPageNthWord: Incorrect parameter value. @@ -99,14 +101,28 @@ Alert: PASS: this.getPageNumWords(0, "clams", [1, 2]) = 2 Alert: PASS: this.getPageNumWords(-1) threw error Document.getPageNumWords: Incorrect parameter value. Alert: PASS: this.getPageNumWords(6) threw error Document.getPageNumWords: Incorrect parameter value. Alert: PASS: typeof this.getPrintParams = function +Alert: PASS: this.getPrintParams() threw error Document.getPrintParams: Operation not supported. +Alert: PASS: this.getPrintParams(42) threw error Document.getPrintParams: Operation not supported. Alert: PASS: typeof this.gotoNamedDest = function Alert: PASS: this.gotoNamedDest() threw error Document.gotoNamedDest: Incorrect number of parameters passed to function. Alert: PASS: this.gotoNamedDest(1, 2) threw error Document.gotoNamedDest: Incorrect number of parameters passed to function. +Alert: PASS: this.gotoNamedDest("chicago") threw error Document.gotoNamedDest: Object no longer exists. Alert: PASS: typeof this.mailDoc = function +Mail Msg: 1, to=, cc=, bcc=, subject=, body= +Alert: PASS: this.mailDoc(true) = undefined +Mail Msg: 0, to=user@example.com, cc=cc@example.com, bcc=bcc@example.com, subject=Lottery Winner, body=You won the lottery! +Alert: PASS: this.mailDoc(false, "user@example.com", "cc@example.com", "bcc@example.com", "Lottery Winner", "You won the lottery!") = undefined Alert: PASS: typeof this.mailForm = function +Mail Msg: 1, to=, cc=, bcc=, subject=, body= +Alert: PASS: this.mailForm(true) = undefined +Mail Msg: 0, to=user@example.com, cc=cc@example.com, bcc=bcc@example.com, subject=Lottery Winner, body=You won the lottery! +Alert: PASS: this.mailForm(false, "user@example.com", "cc@example.com", "bcc@example.com", "Lottery Winner", "You won the lottery!") = undefined 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.resetForm = function +Alert: PASS: this.resetForm() = undefined +Alert: PASS: this.resetForm("myform") = undefined Alert: PASS: typeof this.submitForm = function Alert: PASS: this.submitForm() threw error Document.submitForm: Incorrect number of parameters passed to function. +Alert: PASS: this.submitForm("myform", true, true, ["name", "age"]) = undefined |