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:
parent
e892f3b18f
commit
f6b215144d
2 changed files with 8 additions and 27 deletions
|
@ -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,
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue