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