Commit 4c3730ee authored by Emilio Cobos Álvarez's avatar Emilio Cobos Álvarez Committed by Richard Pospesel
Browse files

Bug 1789439 - Fix browser_modal_print.js after previous patch. a=pascalc

MANUAL PUSH: Orange fix CLOSED TREE
parent bb7b3aa3
Loading
Loading
Loading
Loading
+9 −6
Original line number Original line Diff line number Diff line
@@ -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);