зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1243988 - Enable browser_webconsole_autocomplete_popup_close_on_tab_switch.js in e10s;r=linclark
MozReview-Commit-ID: 6woBzDyh3Jm
This commit is contained in:
Родитель
9b0e29120b
Коммит
1450c8d113
|
@ -338,7 +338,6 @@ tags = trackingprotection
|
|||
[browser_webconsole_expandable_timestamps.js]
|
||||
[browser_webconsole_autocomplete_in_debugger_stackframe.js]
|
||||
[browser_webconsole_autocomplete_popup_close_on_tab_switch.js]
|
||||
skip-if = e10s # Bug 1042253 - webconsole tests disabled with e10s
|
||||
[browser_webconsole_autocomplete-properties-with-non-alphanumeric-names.js]
|
||||
[browser_console_hide_jsterm_when_devtools_chrome_enabled_false.js]
|
||||
[browser_console_history_persist.js]
|
||||
|
|
|
@ -14,24 +14,14 @@ add_task(function*() {
|
|||
yield loadTab(TEST_URI);
|
||||
let hud = yield openConsole();
|
||||
let popup = hud.jsterm.autocompletePopup;
|
||||
let popupShown = onPopupShown(popup._panel);
|
||||
let popupShown = once(popup._panel, "popupshown");
|
||||
|
||||
hud.jsterm.setInputValue("sc");
|
||||
EventUtils.synthesizeKey("r", {});
|
||||
|
||||
yield popupShown;
|
||||
|
||||
yield loadTab("data:text/html;charset=utf-8,<p>testing autocomplete closes")
|
||||
|
||||
ok(!popup.isOpen, "Popup closes on tab switch");
|
||||
});
|
||||
|
||||
function onPopupShown(panel) {
|
||||
let finished = promise.defer();
|
||||
|
||||
panel.addEventListener("popupshown", function popupOpened() {
|
||||
panel.removeEventListener("popupshown", popupOpened, false);
|
||||
loadTab("data:text/html;charset=utf-8,<p>testing autocomplete closes")
|
||||
.then(finished.resolve);
|
||||
}, false);
|
||||
|
||||
return finished.promise;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче