summaryrefslogtreecommitdiffstats
path: root/toolkit/components/printing/tests/browser_preview_print_link_modulepreload.js
blob: 84b6f2a0beb771acfdd481f9d1ce0d66dc66b0a9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/* Any copyright is dedicated to the Public Domain.
   http://creativecommons.org/publicdomain/zero/1.0/ */

"use strict";

const TEST_PATH = getRootDirectory(gTestPath).replace(
  "chrome://mochitests/content",
  "https://example.com"
);

add_task(async function testLinkModulePreload() {
  await SpecialPowers.pushPrefEnv({
    set: [["dom.importMaps.enabled", true]],
  });

  await PrintHelper.withTestPage(async helper => {
    await helper.startPrint();
    ok(true, "We did not crash.");
    await helper.closeDialog();
  }, "file_link_modulepreload.html");
});