1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-25 09:38:06 +02:00

Simplify the copy & paste integration test

This commit is contained in:
Calixte Denizet 2024-03-19 22:29:59 +01:00
parent e892f3b18f
commit f6b215144d
2 changed files with 8 additions and 27 deletions

View file

@ -307,13 +307,6 @@ function waitForAnnotationEditorLayer(page) {
});
}
async function waitForTextLayer(page) {
const handle = await createPromise(page, resolve => {
window.PDFViewerApplication.eventBus.on("textlayerrendered", resolve);
});
return awaitPromise(handle);
}
async function scrollIntoView(page, selector) {
const handle = await page.evaluateHandle(
sel => [
@ -541,7 +534,6 @@ export {
waitForSelectedEditor,
waitForSerialized,
waitForStorageEntries,
waitForTextLayer,
waitForTimeout,
waitForUnselectedEditor,
};