mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-10 02:05:37 +02:00
[Editor] Add the possibility to create an highlight from the context menu when some text is selected (bug 1867739)
This commit is contained in:
parent
72b8b29147
commit
e1f6f5179f
7 changed files with 266 additions and 72 deletions
|
@ -18,7 +18,7 @@ import { closePages, loadAndWait } from "./test_utils.mjs";
|
|||
const waitForSelectionChange = (page, selection) =>
|
||||
page.waitForFunction(
|
||||
// We need to replace EOL on Windows to make the test pass.
|
||||
sel => window.getSelection().toString().replaceAll("\r\n", "\n") === sel,
|
||||
sel => document.getSelection().toString().replaceAll("\r\n", "\n") === sel,
|
||||
{},
|
||||
selection
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue