pdf.js/test/integration
Tim van der Meij 2bae8af96a
Fix intermittent problems on Windows in the XFA search integration test
The current test fails intermittently only on Windows for unknown
reasons: the code is correct and on Linux it always passes. However, we
have already spent quite a lot of time on this test, so rather than
spending even more time on it I figured we should look at what behavior
the test is trying to check and find an alternative way to do it that
can't trigger this intermittent issue anymore.

This commit changes the test to use a term that only exists once in the
entire document so we cannot accidentally highlight another match
anymore. This doesn't change anything about the behavior that this test
aims to check: we still test searching in the XFA layer, we still test
that the original term is matched case-insensitively and we still test
that that match is actually highlighted. Note that the only objective of
the test is confirming that the search functionality covers the XFA
layer, so the exact phrase/match is not the interesting bit.
2023-10-15 15:02:41 +02:00
..
accessibility_spec.mjs Convert the integration test-files to JavaScript modules 2023-10-12 13:18:20 +02:00
annotation_spec.mjs Convert the integration test-files to JavaScript modules 2023-10-12 13:18:20 +02:00
copy_paste_spec.mjs Convert the integration test-files to JavaScript modules 2023-10-12 13:18:20 +02:00
find_spec.mjs Fix intermittent problems on Windows in the XFA search integration test 2023-10-15 15:02:41 +02:00
freetext_editor_spec.mjs Convert the integration test-files to JavaScript modules 2023-10-12 13:18:20 +02:00
ink_editor_spec.mjs Convert the integration test-files to JavaScript modules 2023-10-12 13:18:20 +02:00
scripting_spec.mjs Remove Escape key press from the autoprint integration test 2023-10-14 18:17:29 +02:00
stamp_editor_spec.mjs Convert the integration test-files to JavaScript modules 2023-10-12 13:18:20 +02:00
test_utils.mjs Convert the integration test-files to JavaScript modules 2023-10-12 13:18:20 +02:00