summaryrefslogtreecommitdiff
path: root/testing/resources/javascript/document_methods.in
diff options
context:
space:
mode:
authortonikitoo <tonikitoo@igalia.com>2016-08-26 14:41:29 -0700
committerCommit bot <commit-bot@chromium.org>2016-08-26 14:41:29 -0700
commit0ee35908e906922a423fb18d7085ef80d0d8d8c8 (patch)
tree83921c5170c6a361b2317901f01d8d8928921282 /testing/resources/javascript/document_methods.in
parentb7fb1fd087cfe20cfc29cabc80af2c11e91538c6 (diff)
downloadpdfium-0ee35908e906922a423fb18d7085ef80d0d8d8c8.tar.xz
Add support to Document::getAnnots method
Although notably, the parameters handling support is not complete, CL intends to be the first step towards a more complete implementation of this API. TEST=testing/resources/javascript/bug_492_1.in BUG=pdfium:492 Review-Url: https://codereview.chromium.org/2281273002
Diffstat (limited to 'testing/resources/javascript/document_methods.in')
-rw-r--r--testing/resources/javascript/document_methods.in9
1 files changed, 8 insertions, 1 deletions
diff --git a/testing/resources/javascript/document_methods.in b/testing/resources/javascript/document_methods.in
index cdbd6845c8..8c5a14a59e 100644
--- a/testing/resources/javascript/document_methods.in
+++ b/testing/resources/javascript/document_methods.in
@@ -147,6 +147,13 @@ function testGetAnnot() {
// TODO(tonikitoo): test success cases.
}
+function testGetAnnots() {
+ // Method is present.
+ expect('typeof this.getAnnots', 'function');
+
+ // TODO(tonikitoo): test success cases.
+}
+
function testGetField() {
// Method is present.
expect('typeof this.getField', 'function');
@@ -302,7 +309,6 @@ try {
testUnsupported('this.exportAsXFDF');
testUnsupported('this.extractPages');
testUnsupported('this.getAnnot3D');
- testUnsupported('this.getAnnots');
testUnsupported('this.getLinks');
testUnsupported('this.getOCGs');
testUnsupported('this.getPageBox');
@@ -320,6 +326,7 @@ try {
testAddIcon();
testCalculateNow();
testGetAnnot();
+ testGetAnnots();
testGetField();
testGetIcon();
testGetNthFieldName();