diff --git a/test/browser_tests.py b/test/browser_tests.py index c6cbba4..0db5cf5 100644 --- a/test/browser_tests.py +++ b/test/browser_tests.py @@ -44,7 +44,7 @@ class BrowserTests(Common): os.path.join(self.TEST_DATA_DIR, filename), htmlfilename ] - + result = self.run_pdf2htmlEX(pdf2htmlEX_args) self.assertIn(htmlfilename, result['output_files'], 'HTML file is not generated') @@ -76,7 +76,7 @@ class BrowserTests(Common): @unittest.skipIf(Common.GENERATING_MODE, 'Do not auto generate reference for test_fail') def test_fail(self): - # The HTML reference is generated manually, which mismatches the PDF + # The HTML reference is generated manually, which mismatches the PDF # To test if the environment can detect any errors # E.g. when network is down, 404 message is shown for any HTML message with self.assertRaises(AssertionError): @@ -91,3 +91,6 @@ class BrowserTests(Common): def test_text_visibility(self): self.run_test_case('text_visibility.pdf', ['--correct-text-visibility', 1]) + def test_process_form(self): + self.run_test_case('with_form.pdf', ['--process-form', 1]) + diff --git a/test/browser_tests/with_form.pdf b/test/browser_tests/with_form.pdf new file mode 100644 index 0000000..e491abf Binary files /dev/null and b/test/browser_tests/with_form.pdf differ diff --git a/test/browser_tests/with_form/bg1.png b/test/browser_tests/with_form/bg1.png new file mode 100644 index 0000000..4528d03 Binary files /dev/null and b/test/browser_tests/with_form/bg1.png differ diff --git a/test/browser_tests/with_form/f1.woff b/test/browser_tests/with_form/f1.woff new file mode 100644 index 0000000..639534b Binary files /dev/null and b/test/browser_tests/with_form/f1.woff differ diff --git a/test/browser_tests/with_form/f2.woff b/test/browser_tests/with_form/f2.woff new file mode 100644 index 0000000..18d9cee Binary files /dev/null and b/test/browser_tests/with_form/f2.woff differ diff --git a/test/browser_tests/with_form/f3.woff b/test/browser_tests/with_form/f3.woff new file mode 100644 index 0000000..ac03c78 Binary files /dev/null and b/test/browser_tests/with_form/f3.woff differ diff --git a/test/browser_tests/with_form/f4.woff b/test/browser_tests/with_form/f4.woff new file mode 100644 index 0000000..82c8772 Binary files /dev/null and b/test/browser_tests/with_form/f4.woff differ diff --git a/test/browser_tests/with_form/f5.woff b/test/browser_tests/with_form/f5.woff new file mode 100644 index 0000000..0af6709 Binary files /dev/null and b/test/browser_tests/with_form/f5.woff differ diff --git a/test/browser_tests/with_form/f6.woff b/test/browser_tests/with_form/f6.woff new file mode 100644 index 0000000..b76a45e Binary files /dev/null and b/test/browser_tests/with_form/f6.woff differ diff --git a/test/browser_tests/with_form/with_form.html b/test/browser_tests/with_form/with_form.html new file mode 100644 index 0000000..4064028 --- /dev/null +++ b/test/browser_tests/with_form/with_form.html @@ -0,0 +1,415 @@ + + + +
+ + + + + + +