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.in | |
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.in')
-rw-r--r-- | testing/resources/javascript/document_methods.in | 22 |
1 files changed, 2 insertions, 20 deletions
diff --git a/testing/resources/javascript/document_methods.in b/testing/resources/javascript/document_methods.in index 662c05c8e0..b2467f37c4 100644 --- a/testing/resources/javascript/document_methods.in +++ b/testing/resources/javascript/document_methods.in @@ -134,14 +134,6 @@ function testCalculateNow() { // TODO(tsepez): test success cases. } -function testDeletePages() { - // Method is present. - expect('typeof this.deletePages', 'function'); - - // TODO(tsepez): test with no permissions. - // TODO(tsepez): test success cases. -} - function testGetField() { // Method is present. expect('typeof this.getField', 'function'); @@ -255,16 +247,6 @@ function testRemoveField() { // TODO(tsepez): test success cases. } -function testRemoveIcon() { - // Method is present. - expect('typeof this.removeIcon', 'function'); - - // Method requires at least one argument. - expectError('this.removeIcon()'); - - // TODO(tsepez): test success cases. -} - function testResetForm() { // Method is present. expect('typeof this.resetForm', 'function'); @@ -290,6 +272,7 @@ try { testUnsupported('this.addLink'); testUnsupported('this.closeDoc'); testUnsupported('this.createDataObject'); + testUnsupported('this.deletePages'); testUnsupported('this.exportAsFDF'); testUnsupported('this.exportAsText'); testUnsupported('this.exportAsXFDF'); @@ -305,13 +288,13 @@ try { testUnsupported('this.importAnXFDF'); testUnsupported('this.importTextData'); testUnsupported('this.insertPages'); + testUnsupported('this.removeIcon'); testUnsupported('this.replacePages'); testUnsupported('this.saveAs'); app.alert('*** Testing Supported Methods ***'); testAddIcon(); testCalculateNow(); - testDeletePages(); testGetField(); testGetIcon(); testGetNthFieldName(); @@ -323,7 +306,6 @@ try { testMailForm(); testPrint(); testRemoveField(); - testRemoveIcon(); testResetForm(); testSubmitForm(); } catch (e) { |