mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 22:01:30 +00:00
Bug 1306124 - Getting tests outside of webconsole/ to work when the new output area is on by default;r=linclark
MozReview-Commit-ID: Gva7BnXw9PL --HG-- extra : rebase_source : 2219ad090ab8bc326ce92b8e89398342c488daac
This commit is contained in:
parent
35d8cd2b13
commit
4da23e000c
@ -6,6 +6,12 @@
|
|||||||
const TEST_URI = "data:text/html;charset=utf-8,gcli-commands";
|
const TEST_URI = "data:text/html;charset=utf-8,gcli-commands";
|
||||||
const HUDService = require("devtools/client/webconsole/hudservice");
|
const HUDService = require("devtools/client/webconsole/hudservice");
|
||||||
|
|
||||||
|
// Use the old webconsole since pprint isn't working on new one (Bug 1304794)
|
||||||
|
Services.prefs.setBoolPref("devtools.webconsole.new-frontend-enabled", false);
|
||||||
|
registerCleanupFunction(function* () {
|
||||||
|
Services.prefs.clearUserPref("devtools.webconsole.new-frontend-enabled");
|
||||||
|
});
|
||||||
|
|
||||||
function test() {
|
function test() {
|
||||||
return Task.spawn(spawnTest).then(finish, helpers.handleError);
|
return Task.spawn(spawnTest).then(finish, helpers.handleError);
|
||||||
}
|
}
|
||||||
|
@ -7,6 +7,8 @@
|
|||||||
|
|
||||||
const PAGE_URL = "data:text/html;charset=utf-8,test select events";
|
const PAGE_URL = "data:text/html;charset=utf-8,test select events";
|
||||||
|
|
||||||
|
requestLongerTimeout(2);
|
||||||
|
|
||||||
add_task(function* () {
|
add_task(function* () {
|
||||||
let tab = yield addTab(PAGE_URL);
|
let tab = yield addTab(PAGE_URL);
|
||||||
|
|
||||||
|
@ -11,6 +11,13 @@ registerCleanupFunction(() => {
|
|||||||
Services.prefs.clearUserPref("devtools.toolbox.splitconsoleEnabled");
|
Services.prefs.clearUserPref("devtools.toolbox.splitconsoleEnabled");
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// Use the old webconsole since the node isn't being rendered as an HTML tag
|
||||||
|
// in the new one (Bug 1304794)
|
||||||
|
Services.prefs.setBoolPref("devtools.webconsole.new-frontend-enabled", false);
|
||||||
|
registerCleanupFunction(function* () {
|
||||||
|
Services.prefs.clearUserPref("devtools.webconsole.new-frontend-enabled");
|
||||||
|
});
|
||||||
|
|
||||||
add_task(function* () {
|
add_task(function* () {
|
||||||
let { inspector, toolbox } = yield openInspectorForURL(TEST_URL);
|
let { inspector, toolbox } = yield openInspectorForURL(TEST_URL);
|
||||||
|
|
||||||
|
@ -3,6 +3,11 @@
|
|||||||
http://creativecommons.org/publicdomain/zero/1.0/ */
|
http://creativecommons.org/publicdomain/zero/1.0/ */
|
||||||
/* Bug 661762 */
|
/* Bug 661762 */
|
||||||
|
|
||||||
|
// Use the old webconsole since scratchpad focus isn't working on new one (Bug 1304794)
|
||||||
|
Services.prefs.setBoolPref("devtools.webconsole.new-frontend-enabled", false);
|
||||||
|
registerCleanupFunction(function* () {
|
||||||
|
Services.prefs.clearUserPref("devtools.webconsole.new-frontend-enabled");
|
||||||
|
});
|
||||||
|
|
||||||
function test()
|
function test()
|
||||||
{
|
{
|
||||||
|
@ -3,6 +3,14 @@
|
|||||||
|
|
||||||
// Tests that the developer toolbar errors count works properly.
|
// Tests that the developer toolbar errors count works properly.
|
||||||
|
|
||||||
|
// Use the old webconsole since this is directly accessing old DOM, and
|
||||||
|
// the error count isn't reset when pressing the clear button in new one
|
||||||
|
// See Bug 1304794.
|
||||||
|
Services.prefs.setBoolPref("devtools.webconsole.new-frontend-enabled", false);
|
||||||
|
registerCleanupFunction(function* () {
|
||||||
|
Services.prefs.clearUserPref("devtools.webconsole.new-frontend-enabled");
|
||||||
|
});
|
||||||
|
|
||||||
function test() {
|
function test() {
|
||||||
const TEST_URI = TEST_URI_ROOT + "browser_toolbar_webconsole_errors_count.html";
|
const TEST_URI = TEST_URI_ROOT + "browser_toolbar_webconsole_errors_count.html";
|
||||||
|
|
||||||
|
@ -25,6 +25,13 @@ registerCleanupFunction(() => {
|
|||||||
Services.prefs.clearUserPref(NET_XHR_PREF, true);
|
Services.prefs.clearUserPref(NET_XHR_PREF, true);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// Use the old webconsole since the new one doesn't yet support
|
||||||
|
// XHR spy. See Bug 1304794.
|
||||||
|
Services.prefs.setBoolPref("devtools.webconsole.new-frontend-enabled", false);
|
||||||
|
registerCleanupFunction(function* () {
|
||||||
|
Services.prefs.clearUserPref("devtools.webconsole.new-frontend-enabled");
|
||||||
|
});
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Add a new test tab in the browser and load the given url.
|
* Add a new test tab in the browser and load the given url.
|
||||||
* @param {String} url The url to be loaded in the new tab
|
* @param {String} url The url to be loaded in the new tab
|
||||||
|
Loading…
Reference in New Issue
Block a user