Bug 1421116 - Wait for the next event tick before resolving promise in browser_translation_exceptions.js. r=Mossop

This commit is contained in:
Tooru Fujisawa 2017-12-09 06:08:44 +09:00
Родитель 4e1ece6904
Коммит 4649299e4a
1 изменённых файлов: 2 добавлений и 2 удалений

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

@ -75,7 +75,7 @@ function openPopup(aPopup) {
return new Promise(resolve => {
aPopup.addEventListener("popupshown", function() {
resolve();
TestUtils.executeSoon(resolve);
}, {once: true});
aPopup.focus();
@ -90,7 +90,7 @@ function waitForWindowLoad(aWin) {
return new Promise(resolve => {
aWin.addEventListener("load", function() {
resolve();
TestUtils.executeSoon(resolve);
}, {capture: true, once: true});
});