Bug 1437856 - Enable new frontend in browser console in new console test folder; r=miker.

We take this as an advantage to change the bug number for the browser_console test
migration.

MozReview-Commit-ID: 2EbvXJ6Qz08

--HG--
extra : rebase_source : 71c4df1bc44a138b4cae3b96cc8bdef469686b2c
This commit is contained in:
Nicolas Chevobbe 2018-02-13 14:41:44 +01:00
Родитель 10b8b4cdb3
Коммит 3124db66eb
2 изменённых файлов: 18 добавлений и 18 удалений

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

@ -166,31 +166,31 @@ support-files =
!/devtools/client/shared/test/test-actor-registry.js !/devtools/client/shared/test/test-actor-registry.js
[browser_console.js] [browser_console.js]
skip-if = true # Bug 1406060 skip-if = true # Bug 1437806
[browser_console_addonsdk_loader_exception.js] [browser_console_addonsdk_loader_exception.js]
skip-if = true # Bug 1406060 skip-if = true # Bug 1437807
[browser_console_clear_method.js] [browser_console_clear_method.js]
skip-if = true # Bug 1406060 skip-if = true # Bug 1437843
[browser_console_consolejsm_output.js] [browser_console_consolejsm_output.js]
skip-if = true # Bug 1406060 skip-if = true # Bug 1437844
[browser_console_dead_objects.js] [browser_console_dead_objects.js]
skip-if = true # Bug 1406060 skip-if = true # Bug 1437845
[browser_console_error_source_click.js] [browser_console_error_source_click.js]
skip-if = true # Bug 1406060 skip-if = true # Bug 1437847
[browser_console_filters.js] [browser_console_filters.js]
skip-if = true # Bug 1406060 skip-if = true # Bug 1437848
[browser_console_hide_jsterm_when_devtools_chrome_enabled_false.js] [browser_console_hide_jsterm_when_devtools_chrome_enabled_false.js]
skip-if = true # Bug 1406060 skip-if = true # Bug 1437849
[browser_console_nsiconsolemessage.js] [browser_console_nsiconsolemessage.js]
skip-if = true # Bug 1406060 skip-if = true # Bug 1437850
[browser_console_open_or_focus.js] [browser_console_open_or_focus.js]
skip-if = true # Bug 1406060 skip-if = true # Bug 1437851
[browser_console_restore.js] [browser_console_restore.js]
skip-if = true # Bug 1406060 skip-if = true # Bug 1437852
[browser_console_webconsole_ctrlw_close_tab.js] [browser_console_webconsole_ctrlw_close_tab.js]
skip-if = true # Bug 1406060 skip-if = true # Bug 1437854
[browser_console_webconsole_iframe_messages.js] [browser_console_webconsole_iframe_messages.js]
skip-if = true # Bug 1406060 skip-if = true # Bug 1437855
[browser_console_webconsole_private_browsing.js] [browser_console_webconsole_private_browsing.js]
skip-if = true # Bug 1403188 skip-if = true # Bug 1403188
# old console skip-if = e10s # Bug 1042253 - webconsole e10s tests # old console skip-if = e10s # Bug 1042253 - webconsole e10s tests

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

@ -31,14 +31,14 @@ const STATUS_CODES_GA_PARAMS = `?${new URLSearchParams({
"utm_campaign": "default" "utm_campaign": "default"
})}`; })}`;
Services.prefs.setBoolPref("devtools.webconsole.new-frontend-enabled", true); Services.prefs.setBoolPref("devtools.browserconsole.new-frontend-enabled", true);
registerCleanupFunction(function* () { registerCleanupFunction(async function () {
Services.prefs.clearUserPref("devtools.webconsole.new-frontend-enabled"); Services.prefs.clearUserPref("devtools.browserconsole.new-frontend-enabled");
Services.prefs.clearUserPref("devtools.webconsole.ui.filterbar"); Services.prefs.clearUserPref("devtools.webconsole.ui.filterbar");
// Reset all filter prefs between tests. First flushPrefEnv in case one of the // Reset all filter prefs between tests. First flushPrefEnv in case one of the
// filter prefs has been pushed for the test // filter prefs has been pushed for the test
yield SpecialPowers.flushPrefEnv(); await SpecialPowers.flushPrefEnv();
Services.prefs.getChildList("devtools.webconsole.filter").forEach(pref => { Services.prefs.getChildList("devtools.webconsole.filter").forEach(pref => {
Services.prefs.clearUserPref(pref); Services.prefs.clearUserPref(pref);
}); });
@ -47,7 +47,7 @@ registerCleanupFunction(function* () {
if (browserConsole.jsterm) { if (browserConsole.jsterm) {
browserConsole.jsterm.clearOutput(true); browserConsole.jsterm.clearOutput(true);
} }
yield HUDService.toggleBrowserConsole(); await HUDService.toggleBrowserConsole();
} }
}); });