зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1294686 - stub out mochitest directory for new debugger r=bgrins
This commit is contained in:
Родитель
b2e0fdce56
Коммит
7625a7575d
|
@ -13,4 +13,7 @@ DevToolsModules(
|
|||
'panel.js'
|
||||
)
|
||||
|
||||
BROWSER_CHROME_MANIFESTS += ['test/mochitest/browser.ini']
|
||||
BROWSER_CHROME_MANIFESTS += [
|
||||
'new/test/mochitest/browser.ini',
|
||||
'test/mochitest/browser.ini'
|
||||
]
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
[DEFAULT]
|
||||
tags = devtools
|
||||
subsuite = devtools
|
||||
|
||||
[browser_dbg_stub.js]
|
|
@ -0,0 +1,7 @@
|
|||
|
||||
add_task(function*() {
|
||||
ok(true,
|
||||
"This is a stub so that we can run the new debugger tests " +
|
||||
"by copying them in here. This will go away once we land " +
|
||||
"the initial suite of new tests");
|
||||
});
|
|
@ -182,6 +182,7 @@ Tools.jsdebugger = {
|
|||
}
|
||||
};
|
||||
|
||||
function switchDebugger() {
|
||||
if (Services.prefs.getBoolPref("devtools.debugger.new-debugger-frontend")) {
|
||||
const NewDebuggerPanel = require("devtools/client/debugger/new/panel").DebuggerPanel;
|
||||
|
||||
|
@ -189,7 +190,20 @@ if (Services.prefs.getBoolPref("devtools.debugger.new-debugger-frontend")) {
|
|||
Tools.jsdebugger.build = function (iframeWindow, toolbox) {
|
||||
return new NewDebuggerPanel(iframeWindow, toolbox);
|
||||
};
|
||||
} else {
|
||||
Tools.jsdebugger.url = "chrome://devtools/content/debugger/debugger.xul";
|
||||
Tools.jsdebugger.build = function (iframeWindow, toolbox) {
|
||||
return new DebuggerPanel(iframeWindow, toolbox);
|
||||
};
|
||||
}
|
||||
}
|
||||
switchDebugger();
|
||||
|
||||
Services.prefs.addObserver(
|
||||
"devtools.debugger.new-debugger-frontend",
|
||||
{ observe: switchDebugger },
|
||||
false
|
||||
);
|
||||
|
||||
Tools.styleEditor = {
|
||||
id: "styleeditor",
|
||||
|
|
Загрузка…
Ссылка в новой задаче