mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-24 09:08:07 +02:00
Deduplicate the waitForPointerUp
helper function in the highlight editor integration tests
The helper function is available in `test_utils.mjs` since commit
3fe55ba
, so we can remove the local copy by importing it.
This commit is contained in:
parent
07629e105c
commit
060ef0e15e
1 changed files with 1 additions and 6 deletions
|
@ -16,7 +16,6 @@
|
|||
import {
|
||||
awaitPromise,
|
||||
closePages,
|
||||
createPromise,
|
||||
getEditorSelector,
|
||||
getFirstSerialized,
|
||||
getRect,
|
||||
|
@ -37,6 +36,7 @@ import {
|
|||
unselectEditor,
|
||||
waitAndClick,
|
||||
waitForAnnotationModeChanged,
|
||||
waitForPointerUp,
|
||||
waitForSelectedEditor,
|
||||
waitForSerialized,
|
||||
waitForTimeout,
|
||||
|
@ -54,11 +54,6 @@ const selectAll = async page => {
|
|||
);
|
||||
};
|
||||
|
||||
const waitForPointerUp = page =>
|
||||
createPromise(page, resolve => {
|
||||
window.addEventListener("pointerup", resolve, { once: true });
|
||||
});
|
||||
|
||||
const switchToHighlight = switchToEditor.bind(null, "Highlight");
|
||||
|
||||
describe("Highlight Editor", () => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue