Source code

Revision control

Copy as Markdown

Other Tools

Test Info: Errors

  • This test gets skipped with pattern: os == 'linux' && os_version == '18.04' && processor == 'x86_64' && tsan && swgl OR os == 'linux' && os_version == '24.04' && processor == 'x86_64' && display == 'x11' && tsan && swgl OR os == 'win' && os_version == '11.26100' && processor == 'x86_64' && ccov
  • This test failed 38 times in the preceding 30 days. quicksearch this test
  • Manifest: toolkit/components/printing/tests/browser.toml
/* Any copyright is dedicated to the Public Domain.
"use strict";
const TEST_PATH = getRootDirectory(gTestPath).replace(
);
add_setup(async function () {
await SpecialPowers.pushPrefEnv({
set: [["test.wait300msAfterTabSwitch", true]],
});
});
add_task(async function test() {
let tab = await BrowserTestUtils.switchTab(gBrowser, function () {
gBrowser.selectedTab = BrowserTestUtils.addTab(
gBrowser,
`${TEST_PATH}simplifyArticleSample.html`,
{ userContextId: 1 }
);
});
const helper = new PrintHelper(tab.linkedBrowser);
helper.assertDialogClosed();
await helper.startPrint();
helper.assertDialogOpen();
let file = helper.mockFilePicker("browser_print_in_container.pdf");
await helper.assertPrintToFile(file, () => {
helper.click(helper.get("print-button"));
});
ok(true, "We did not crash.");
BrowserTestUtils.removeTab(tab);
});