Add missing endobj keywords to test files.

Change-Id: I223daeace6b2c89c1b250909f66c595c6eb5f7b6
Reviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/66212
Reviewed-by: Tom Sepez <tsepez@chromium.org>
Commit-Queue: Lei Zhang <thestig@chromium.org>
diff --git a/testing/resources/javascript/app_methods.in b/testing/resources/javascript/app_methods.in
index abdfc0b..fddcd64 100644
--- a/testing/resources/javascript/app_methods.in
+++ b/testing/resources/javascript/app_methods.in
@@ -19,6 +19,7 @@
   /Parent 2 0 R
   /MediaBox [0 0 612 792]
 >>
+endobj
 % OpenAction action
 {{object 10 0}} <<
   /Type /Action
diff --git a/testing/resources/javascript/app_properties.in b/testing/resources/javascript/app_properties.in
index cbe32ac..290fc24 100644
--- a/testing/resources/javascript/app_properties.in
+++ b/testing/resources/javascript/app_properties.in
@@ -25,6 +25,7 @@
   >>
   /MediaBox [0 0 612 792]
 >>
+endobj
 % Page number 1.
 {{object 4 0}} <<
   /Type /Page
@@ -34,6 +35,7 @@
   >>
   /MediaBox [0 0 612 792]
 >>
+endobj
 % Page number 2.
 {{object 5 0}} <<
   /Type /Page
@@ -43,6 +45,7 @@
   >>
   /MediaBox [0 0 612 792]
 >>
+endobj
 % Page number 3.
 {{object 6 0}} <<
   /Type /Page
@@ -52,6 +55,7 @@
   >>
   /MediaBox [0 0 612 792]
 >>
+endobj
 
 % Info
 {{object 9 0}} <<
diff --git a/testing/resources/javascript/apply.in b/testing/resources/javascript/apply.in
index a5a38e2..e8ec5e2 100644
--- a/testing/resources/javascript/apply.in
+++ b/testing/resources/javascript/apply.in
@@ -23,6 +23,7 @@
   /Contents [21 0 R]
   /MediaBox [0 0 612 792]
 >>
+endobj
 % OpenAction action
 {{object 10 0}} <<
   /Type /Action
diff --git a/testing/resources/javascript/array_buffer.in b/testing/resources/javascript/array_buffer.in
index a5f6f0a..3790c6c 100644
--- a/testing/resources/javascript/array_buffer.in
+++ b/testing/resources/javascript/array_buffer.in
@@ -23,6 +23,7 @@
   /Contents [21 0 R]
   /MediaBox [0 0 612 792]
 >>
+endobj
 % OpenAction action
 {{object 10 0}} <<
   /Type /Action
diff --git a/testing/resources/javascript/bug_361.in b/testing/resources/javascript/bug_361.in
index 1d06de7..386142a 100644
--- a/testing/resources/javascript/bug_361.in
+++ b/testing/resources/javascript/bug_361.in
@@ -24,10 +24,12 @@
   /Contents [21 0 R]
   /MediaBox [0 0 612 792]
 >>
+endobj
 % Forms
 {{object 4 0}} <<
   /Fields [5 0 R]
 >>
+endobj
 % Field
 {{object 5 0}} <<
  /FT /Tx
@@ -36,6 +38,7 @@
  /Subtype /Widget
  /Rect [100 200 150 250]
 >>
+endobj
 % OpenAction action
 {{object 10 0}} <<
   /Type /Action
diff --git a/testing/resources/javascript/bug_695826.in b/testing/resources/javascript/bug_695826.in
index 7faa8cb..9d32be7 100644
--- a/testing/resources/javascript/bug_695826.in
+++ b/testing/resources/javascript/bug_695826.in
@@ -23,6 +23,7 @@
   /Contents [21 0 R]
   /MediaBox [0 0 612 792]
 >>
+endobj
 % OpenAction action
 {{object 10 0}} <<
   /Type /Action
diff --git a/testing/resources/javascript/bug_740166.in b/testing/resources/javascript/bug_740166.in
index 7376fc4..6f0c829 100644
--- a/testing/resources/javascript/bug_740166.in
+++ b/testing/resources/javascript/bug_740166.in
@@ -24,10 +24,12 @@
   /Contents [21 0 R]
   /MediaBox [0 0 612 792]
 >>
+endobj
 % Forms
 {{object 4 0}} <<
   /Fields [5 0 R]
 >>
+endobj
 % Field
 {{object 5 0}} <<
  /FT /Tx
@@ -36,6 +38,7 @@
  /Subtype /Widget
  /Rect [100 200 150 250]
 >>
+endobj
 % OpenAction action
 {{object 10 0}} <<
   /Type /Action
diff --git a/testing/resources/javascript/bug_959274_1.in b/testing/resources/javascript/bug_959274_1.in
index 74909c0..9efb9dc 100644
--- a/testing/resources/javascript/bug_959274_1.in
+++ b/testing/resources/javascript/bug_959274_1.in
@@ -23,6 +23,7 @@
   /Contents [21 0 R]
   /MediaBox [0 0 612 792]
 >>
+endobj
 % OpenAction action
 {{object 10 0}} <<
   /Type /Action
diff --git a/testing/resources/javascript/color_properties.in b/testing/resources/javascript/color_properties.in
index 1892c20..0fea81e 100644
--- a/testing/resources/javascript/color_properties.in
+++ b/testing/resources/javascript/color_properties.in
@@ -20,6 +20,7 @@
   /Contents [21 0 R]
   /MediaBox [0 0 612 792]
 >>
+endobj
 % OpenAction action
 {{object 10 0}} <<
   /Type /Action
diff --git a/testing/resources/javascript/constructor.in b/testing/resources/javascript/constructor.in
index 686b6e1..61ce579 100644
--- a/testing/resources/javascript/constructor.in
+++ b/testing/resources/javascript/constructor.in
@@ -19,6 +19,7 @@
   /Parent 2 0 R
   /MediaBox [0 0 612 792]
 >>
+endobj
 % OpenAction action
 {{object 10 0}} <<
   /Type /Action
diff --git a/testing/resources/javascript/consts.in b/testing/resources/javascript/consts.in
index cfb3c8f..b4180ff 100644
--- a/testing/resources/javascript/consts.in
+++ b/testing/resources/javascript/consts.in
@@ -23,6 +23,7 @@
   /Contents [21 0 R]
   /MediaBox [0 0 612 792]
 >>
+endobj
 % OpenAction action
 {{object 10 0}} <<
   /Type /Action
diff --git a/testing/resources/javascript/document_methods.in b/testing/resources/javascript/document_methods.in
index 7cb86f8..5db9775 100644
--- a/testing/resources/javascript/document_methods.in
+++ b/testing/resources/javascript/document_methods.in
@@ -26,6 +26,7 @@
   /MediaBox [0 0 612 792]
   /Contents 8 0 R
 >>
+endobj
 % Page number 1.
 {{object 4 0}} <<
   /Type /Page
@@ -35,6 +36,7 @@
   >>
   /MediaBox [0 0 612 792]
 >>
+endobj
 % Page number 2.
 {{object 5 0}} <<
   /Type /Page
@@ -44,6 +46,7 @@
   >>
   /MediaBox [0 0 612 792]
 >>
+endobj
 % Page number 3.
 {{object 6 0}} <<
   /Type /Page
@@ -53,6 +56,7 @@
   >>
   /MediaBox [0 0 612 792]
 >>
+endobj
 % Contents of the page.
 {{object 8 0}} <<
   {{streamlen}}
diff --git a/testing/resources/javascript/document_properties.in b/testing/resources/javascript/document_properties.in
index 85d2bf6..44a108b 100644
--- a/testing/resources/javascript/document_properties.in
+++ b/testing/resources/javascript/document_properties.in
@@ -25,6 +25,7 @@
   >>
   /MediaBox [0 0 612 792]
 >>
+endobj
 % Page number 1.
 {{object 4 0}} <<
   /Type /Page
@@ -34,6 +35,7 @@
   >>
   /MediaBox [0 0 612 792]
 >>
+endobj
 % Page number 2.
 {{object 5 0}} <<
   /Type /Page
@@ -43,6 +45,7 @@
   >>
   /MediaBox [0 0 612 792]
 >>
+endobj
 % Page number 3.
 {{object 6 0}} <<
   /Type /Page
@@ -52,6 +55,7 @@
   >>
   /MediaBox [0 0 612 792]
 >>
+endobj
 
 % Info
 {{object 9 0}} <<
diff --git a/testing/resources/javascript/globals.in b/testing/resources/javascript/globals.in
index f452626..3079213 100644
--- a/testing/resources/javascript/globals.in
+++ b/testing/resources/javascript/globals.in
@@ -23,6 +23,7 @@
   /Contents [21 0 R]
   /MediaBox [0 0 612 792]
 >>
+endobj
 % OpenAction action
 {{object 10 0}} <<
   /Type /Action
diff --git a/testing/resources/javascript/mouse_events.in b/testing/resources/javascript/mouse_events.in
index 4c6935e..b7b5a6d 100644
--- a/testing/resources/javascript/mouse_events.in
+++ b/testing/resources/javascript/mouse_events.in
@@ -24,6 +24,7 @@
   /Contents [21 0 R]
   /MediaBox [0 0 612 792]
 >>
+endobj
 % Forms
 {{object 4 0}} <<
   /Fields [
@@ -32,6 +33,7 @@
     7 0 R
   ]
 >>
+endobj
 % Field with actions:
 % Cursor enter: E
 % Cursor exit: X
@@ -54,6 +56,7 @@
    /Bl 15 0 R
  >>
 >>
+endobj
 {{object 6 0}} <<
  /Type /Annot
  /Subtype /Widget
diff --git a/testing/resources/javascript/unsupported.in b/testing/resources/javascript/unsupported.in
index 19807de..eccfbab 100644
--- a/testing/resources/javascript/unsupported.in
+++ b/testing/resources/javascript/unsupported.in
@@ -19,6 +19,7 @@
   /Parent 2 0 R
   /MediaBox [0 0 612 792]
 >>
+endobj
 % OpenAction action
 {{object 10 0}} <<
   /Type /Action
diff --git a/testing/resources/javascript/util_bytetochar.in b/testing/resources/javascript/util_bytetochar.in
index 461edbc..23dc423 100644
--- a/testing/resources/javascript/util_bytetochar.in
+++ b/testing/resources/javascript/util_bytetochar.in
@@ -23,6 +23,7 @@
   /Contents [21 0 R]
   /MediaBox [0 0 612 792]
 >>
+endobj
 % OpenAction action
 {{object 10 0}} <<
   /Type /Action
diff --git a/testing/resources/javascript/util_printd.in b/testing/resources/javascript/util_printd.in
index a8e9823..d0d17b4 100644
--- a/testing/resources/javascript/util_printd.in
+++ b/testing/resources/javascript/util_printd.in
@@ -23,6 +23,7 @@
   /Contents [21 0 R]
   /MediaBox [0 0 612 792]
 >>
+endobj
 % OpenAction action
 {{object 10 0}} <<
   /Type /Action
diff --git a/testing/resources/javascript/util_printx.in b/testing/resources/javascript/util_printx.in
index cd61743..84d4846 100644
--- a/testing/resources/javascript/util_printx.in
+++ b/testing/resources/javascript/util_printx.in
@@ -23,6 +23,7 @@
   /Contents [21 0 R]
   /MediaBox [0 0 612 792]
 >>
+endobj
 % OpenAction action
 {{object 10 0}} <<
   /Type /Action
diff --git a/testing/resources/javascript/v8_features.in b/testing/resources/javascript/v8_features.in
index f1722e1..8a5b6af 100644
--- a/testing/resources/javascript/v8_features.in
+++ b/testing/resources/javascript/v8_features.in
@@ -19,6 +19,7 @@
   /Parent 2 0 R
   /MediaBox [0 0 612 792]
 >>
+endobj
 % OpenAction action
 {{object 10 0}} <<
   /Type /Action