diff options
author | Tom Sepez <tsepez@chromium.org> | 2015-10-28 11:54:02 -0700 |
---|---|---|
committer | Tom Sepez <tsepez@chromium.org> | 2015-10-28 11:54:02 -0700 |
commit | e5c9e87151fdde07448e024240c4060a7ca08b28 (patch) | |
tree | 59f5d9d8cc206fb8d60e58858cb6c60964a97c4e /testing/resources/javascript/document_methods.in | |
parent | 80189608aed45980ef9afe075ad1836d252ffba3 (diff) | |
download | pdfium-e5c9e87151fdde07448e024240c4060a7ca08b28.tar.xz |
XFA: Update document_methods javascript test.
TBR=dsinclair@chromium.org
Review URL: https://codereview.chromium.org/1430663003 .
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 cd43e32070..3cd3330b87 100644 --- a/testing/resources/javascript/document_methods.in +++ b/testing/resources/javascript/document_methods.in @@ -135,14 +135,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'); @@ -256,16 +248,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'); @@ -291,6 +273,7 @@ try { testUnsupported('this.addLink'); testUnsupported('this.closeDoc'); testUnsupported('this.createDataObject'); + testUnsupported('this.deletePages'); testUnsupported('this.exportAsFDF'); testUnsupported('this.exportAsText'); testUnsupported('this.exportAsXFDF'); @@ -306,13 +289,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(); @@ -324,7 +307,6 @@ try { testMailForm(); testPrint(); testRemoveField(); - testRemoveIcon(); testResetForm(); testSubmitForm(); } catch (e) { |