Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(63)

Unified Diff: testing/resources/javascript/document_methods.in

Issue 2260663002: Add initial Document::getAnnot support (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: fix GYP build Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pdfium.gyp ('k') | testing/resources/javascript/document_methods_expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: testing/resources/javascript/document_methods.in
diff --git a/testing/resources/javascript/document_methods.in b/testing/resources/javascript/document_methods.in
index 1c53dc24b525182660e5630ab426b59a0ed34542..bc0f3f11263598ca1c4726f11c03327ecba2e6fc 100644
--- a/testing/resources/javascript/document_methods.in
+++ b/testing/resources/javascript/document_methods.in
@@ -135,6 +135,18 @@ function testCalculateNow() {
// TODO(tsepez): test success cases.
}
+function testGetAnnot() {
+ // Method is present.
+ expect('typeof this.getAnnot', 'function');
+
+ // Method needs two arguments.
+ expectError('this.getAnnot()');
+ expectError('this.getAnnot(0)');
+ expectError('this.getAnnot(0, "test", 0)');
+
+ // TODO(tonikitoo): test success cases.
+}
+
function testGetField() {
// Method is present.
expect('typeof this.getField', 'function');
@@ -289,7 +301,6 @@ try {
testUnsupported('this.exportAsText');
testUnsupported('this.exportAsXFDF');
testUnsupported('this.extractPages');
- testUnsupported('this.getAnnot');
testUnsupported('this.getAnnot3D');
testUnsupported('this.getAnnots');
testUnsupported('this.getLinks');
@@ -307,6 +318,7 @@ try {
app.alert('*** Testing Supported Methods ***');
testAddIcon();
testCalculateNow();
+ testGetAnnot();
testGetField();
testGetIcon();
testGetNthFieldName();
« no previous file with comments | « pdfium.gyp ('k') | testing/resources/javascript/document_methods_expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698