Calixte Denizet
9765d57a26
[Editor] Extract all the lines when adding a FreeText annotation
...
Fixes #17079 .
2024-01-14 21:11:51 +01:00
Calixte Denizet
7839e7b495
Preserve the whitespaces when getting text from FreeText annotations (bug 1871353)
...
When the text of an annotation is extracted in using getTextContent, consecutive white spaces
are just replaced by one space and. So this patch add an option to make sure that white
spaces are preserved when appearance is parsed.
For the case where there's no appearance, we can have a fast path to get the correct string
from the Content entry.
When an existing FreeText is edited, space (0x20) are replaced by non-breakable (0xa0) ones
to make to see all of them on screen.
2024-01-05 10:20:32 +01:00
Calixte Denizet
c63af10191
Use page.evaluateHandle when we want to await on document promises in integration tests
...
For reference: https://github.com/mozilla/pdf.js/pull/17378#issuecomment-1842864939
2023-12-07 17:00:12 +01:00
Henrik Skupin
9052327e07
Use "count" and not "clickCount" when calling page.mouse.click()
2023-11-30 09:40:57 +01:00
Calixte Denizet
2d42c04543
[Editor] Avoid to click on the delete button in the freetext integration tests
2023-11-11 20:47:05 +01:00
Calixte Denizet
334f0eb060
[Editor] Add a toolbar to selected editors with a button to delete it (bug 1863763)
2023-11-10 15:19:43 +01:00
Calixte Denizet
77475ac610
[Editor] Don't steal the keyboard events when editing mode is enabled
2023-10-30 10:03:44 +01:00
Calixte Denizet
d72fd9ce4f
Fix intermittents failure on mac
2023-10-27 16:10:06 +02:00
Calixte Denizet
517a262fb1
Fix keyboard shortcuts on mac and for some tests make sure that all
...
the page is displayed in using page-fit in order to make all tested
elements visible.
2023-10-27 16:09:35 +02:00
Jonas Jenwald
9878d058fe
Convert the integration
test-files to JavaScript modules
2023-10-12 13:18:20 +02:00
Jonas Jenwald
33456d3704
Rename the integration
test-files, in preparation for converting them to modules
...
This is done separately to ensure that Git is able to track the history correctly.
2023-10-12 13:17:56 +02:00