зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1421116 - Wait for the next event tick before resolving promise in browser_translation_exceptions.js. r=Mossop
This commit is contained in:
Родитель
4e1ece6904
Коммит
4649299e4a
|
@ -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});
|
||||
|
||||
});
|
||||
|
|
Загрузка…
Ссылка в новой задаче