Bug 1789439 - Fix browser_modal_print.js after previous patch.

MANUAL PUSH: Orange fix CLOSED TREE
This commit is contained in:
Emilio Cobos Álvarez 2022-09-15 09:48:12 -07:00
Родитель a2c65fb57d
Коммит 2bda6c8d2d
1 изменённых файлов: 9 добавлений и 6 удалений

Просмотреть файл

@ -40,12 +40,15 @@ add_task(async function testPrintMultiple() {
assertExpectedPrintPage(helper);
// Trigger the command a few more times, verify the overlay still exists.
await helper.startPrint();
helper.assertDialogOpen();
await helper.startPrint();
helper.assertDialogOpen();
await helper.startPrint();
helper.assertDialogOpen();
ignoreAllUncaughtExceptions(true);
for (let i = 0; i < 3; ++i) {
try {
await helper.startPrint();
} finally {
helper.assertDialogOpen();
}
}
ignoreAllUncaughtExceptions(false);
// Verify it's still the correct page.
assertExpectedPrintPage(helper);