pdf.js/test/integration
Tim van der Meij 306cca930f
Fix off-by-one errors in the "FreeText must move several annotations" integration test
The x/y-coordinates are floats instead of integers like one might
expect. The current approach rounds both the old and the new
coordinates in order to do integer comparison. However, rounding each
coordinate individually causes too much loss of precision because,
depending on the decimal value, they are either rounded up or down
which causes intermittent off-by-one errors.

This commit fixes the problem by comparing coordinate differences
instead of the coordinates themselves. The precision loss is avoided
by subtracting the old from the new coordinate as-is and only rounding
the final result.
2023-09-17 15:56:51 +02:00
..
accessibility_spec.js Ignore null-chars when using structTree-data in the viewer 2023-08-31 16:29:10 +02:00
annotation_spec.js Make annotations focusable (bug 1851489) 2023-09-04 17:12:23 +02:00
copy_paste_spec.js [api-minor] Don't normalize the text used in the text layer. 2023-04-17 14:31:23 +02:00
find_spec.js XFA - Support text search in XFA documents. 2021-08-23 08:44:20 -07:00
freetext_editor_spec.js Fix off-by-one errors in the "FreeText must move several annotations" integration test 2023-09-17 15:56:51 +02:00
ink_editor_spec.js [Editor] Move an the editor div in the DOM once a translation with the keyboard is done 2023-08-08 21:02:05 +02:00
scripting_spec.js Wait for selector instead of timeout in the bug1844576 integration test 2023-09-17 13:15:53 +02:00
stamp_editor_spec.js [Editor] Remove the stamp editor displayed when the image was loading (bug 1848313) 2023-08-11 16:46:23 +02:00
test_utils.js [Editor] Avoid to use parent of editors in destroyed pages 2023-09-07 12:30:29 +02:00