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' && swgl && tsan
- This test failed 23 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_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);
});