1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-26 10:08:06 +02:00

Convert the integration test-files to JavaScript modules

This commit is contained in:
Jonas Jenwald 2023-10-12 13:16:58 +02:00
parent 33456d3704
commit 9878d058fe
9 changed files with 83 additions and 68 deletions

View file

@ -13,7 +13,7 @@
* limitations under the License.
*/
const {
import {
closePages,
getEditorDimensions,
getEditorSelector,
@ -21,11 +21,14 @@ const {
loadAndWait,
serializeBitmapDimensions,
waitForAnnotationEditorLayer,
waitForStorageEntries,
waitForSelectedEditor,
} = require("./test_utils.js");
const path = require("path");
const fs = require("fs");
waitForStorageEntries,
} from "./test_utils.mjs";
import { fileURLToPath } from "url";
import fs from "fs";
import path from "path";
const __dirname = path.dirname(fileURLToPath(import.meta.url));
const selectAll = async page => {
await page.keyboard.down("Control");