List annots in page annotation dict for JS field tests

Same omission as was noticed in public_methods test review.
Enable one additional test which was failing previously,
to show that annot is now seen.

Change-Id: I3be0137725f227c2e0594d0c1ef4eb6e603d4dfc
Reviewed-on: https://pdfium-review.googlesource.com/c/45390
Reviewed-by: Lei Zhang <thestig@chromium.org>
Commit-Queue: Tom Sepez <tsepez@chromium.org>
diff --git a/testing/resources/javascript/field_methods.in b/testing/resources/javascript/field_methods.in
index 3daaef6..5c82c8f 100644
--- a/testing/resources/javascript/field_methods.in
+++ b/testing/resources/javascript/field_methods.in
@@ -19,6 +19,13 @@
   /Type /Page
   /Parent 2 0 R
   /MediaBox [0 0 612 792]
+  /Annots [
+    5 0 R
+    6 0 R
+    7 0 R
+    8 0 R
+    9 0 R
+  ]
 >>
 endobj
 % Forms
diff --git a/testing/resources/javascript/field_properties.in b/testing/resources/javascript/field_properties.in
index 4b54cbc..21d11a6 100644
--- a/testing/resources/javascript/field_properties.in
+++ b/testing/resources/javascript/field_properties.in
@@ -19,6 +19,13 @@
   /Type /Page
   /Parent 2 0 R
   /MediaBox [0 0 612 792]
+  /Annots [
+    5 0 R
+    6 0 R
+    7 0 R
+    8 0 R
+    9 0 R
+  ]
 >>
 endobj
 % Forms
@@ -206,7 +213,7 @@
     testROProperty(field, "doc", "[object global]");
     // testROProperty(field, "editable", "clams");
     // testROProperty(field, "exportValues", "clams");
-    // testROProperty(field, "hidden", "clams");
+    testRWProperty(field, "hidden", false, true);
     testRIProperty(field, "fileSelect", false, true);
     testRIProperty(field, "fillColor", "T", ["RGB", 0, 0, 0]);
     // testROProperty(field, "lineWidth", "clams");
@@ -215,7 +222,7 @@
     // testROProperty(field, "multipleSelection", "clams");
     testROProperty(field, "name", "MyField");
     // testROProperty(field, "numItems", "clams");
-    testROProperty(field, "page", -1);
+    testROProperty(field, "page", 0);
     testRIProperty(field, "password", false, 42);
     // testROProperty(field, "print", "clams");
     // testROProperty(field, "radiosInUnison", "clams");
diff --git a/testing/resources/javascript/field_properties_expected.txt b/testing/resources/javascript/field_properties_expected.txt
index 4ab34fc..dad973a 100644
--- a/testing/resources/javascript/field_properties_expected.txt
+++ b/testing/resources/javascript/field_properties_expected.txt
@@ -20,6 +20,8 @@
 Alert: PASS: doNotSpellCheck = false
 Alert: PASS: doc = [object global]
 Alert: PASS: doc threw error Field.doc: Operation not supported.
+Alert: PASS: hidden = false
+Alert: PASS: hidden = true
 Alert: PASS: fileSelect = false
 Alert: PASS: fileSelect = false
 Alert: PASS: fillColor = T
@@ -28,7 +30,7 @@
 Alert: PASS: multiline = false
 Alert: PASS: name = MyField
 Alert: PASS: name threw error Field.name: Operation not supported.
-Alert: PASS: page = -1
+Alert: PASS: page = 0
 Alert: PASS: page threw error Field.page: Cannot assign to readonly property.
 Alert: PASS: password = false
 Alert: PASS: password = false