diff options
Diffstat (limited to 'testing/resources/javascript/document_methods.in')
-rw-r--r-- | testing/resources/javascript/document_methods.in | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/testing/resources/javascript/document_methods.in b/testing/resources/javascript/document_methods.in index 3cd3330b87..1c53dc24b5 100644 --- a/testing/resources/javascript/document_methods.in +++ b/testing/resources/javascript/document_methods.in @@ -214,6 +214,17 @@ function testGetPrintParams() { // TODO(tsepez): test success cases. } +function testGotoNamedDest() { + // Method is present. + expect('typeof this.gotoNamedDest', 'function'); + + // Method needs exactly one argument. + expectError('this.gotoNamedDest()'); + expectError('this.gotoNamedDest(1, 2)'); + + // TODO(tonikitoo): test success cases. +} + function testMailDoc() { // Method is present. expect('typeof this.mailDoc', 'function'); @@ -303,6 +314,7 @@ try { testGetPageNthWordQuads(); testGetPageNumWords(); testGetPrintParams(); + testGotoNamedDest(); testMailDoc(); testMailForm(); testPrint(); |