Loading toolkit/components/printing/tests/browser_modal_print.js +9 −6 Original line number Diff line number Diff line Loading @@ -40,12 +40,15 @@ add_task(async function testPrintMultiple() { assertExpectedPrintPage(helper); // Trigger the command a few more times, verify the overlay still exists. ignoreAllUncaughtExceptions(true); for (let i = 0; i < 3; ++i) { try { await helper.startPrint(); } finally { helper.assertDialogOpen(); await helper.startPrint(); helper.assertDialogOpen(); await helper.startPrint(); helper.assertDialogOpen(); } } ignoreAllUncaughtExceptions(false); // Verify it's still the correct page. assertExpectedPrintPage(helper); Loading Loading
toolkit/components/printing/tests/browser_modal_print.js +9 −6 Original line number Diff line number Diff line Loading @@ -40,12 +40,15 @@ add_task(async function testPrintMultiple() { assertExpectedPrintPage(helper); // Trigger the command a few more times, verify the overlay still exists. ignoreAllUncaughtExceptions(true); for (let i = 0; i < 3; ++i) { try { await helper.startPrint(); } finally { helper.assertDialogOpen(); await helper.startPrint(); helper.assertDialogOpen(); await helper.startPrint(); helper.assertDialogOpen(); } } ignoreAllUncaughtExceptions(false); // Verify it's still the correct page. assertExpectedPrintPage(helper); Loading