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:
parent
33456d3704
commit
9878d058fe
9 changed files with 83 additions and 68 deletions
|
@ -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");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue