Bug 1090929 - Enable the source-mapping tests;r=mratcliffe

This commit is contained in:
Eddy Bruël 2014-11-06 19:56:49 +01:00
Родитель e8bec906f5
Коммит 111d8c68a6
7 изменённых файлов: 25 добавлений и 23 удалений

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

@ -392,13 +392,13 @@ skip-if = e10s
[browser_dbg_searchbox-parse.js]
skip-if = e10s
[browser_dbg_source-maps-01.js]
skip-if = e10s
skip-if = e10s && debug
[browser_dbg_source-maps-02.js]
skip-if = e10s
skip-if = e10s && debug
[browser_dbg_source-maps-03.js]
skip-if = e10s
skip-if = e10s && debug
[browser_dbg_source-maps-04.js]
skip-if = e10s
skip-if = e10s # Bug 1093535
[browser_dbg_sources-cache.js]
skip-if = e10s
[browser_dbg_sources-labels.js]

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

@ -9,13 +9,12 @@
const TAB_URL = EXAMPLE_URL + "doc_binary_search.html";
const COFFEE_URL = EXAMPLE_URL + "code_binary_search.coffee";
let gTab, gDebuggee, gPanel, gDebugger;
let gTab, gPanel, gDebugger;
let gEditor, gSources;
function test() {
initDebugger(TAB_URL).then(([aTab, aDebuggee, aPanel]) => {
initDebugger(TAB_URL).then(([aTab,, aPanel]) => {
gTab = aTab;
gDebuggee = aDebuggee;
gPanel = aPanel;
gDebugger = gPanel.panelWin;
gEditor = gDebugger.DebuggerView.editor;
@ -119,7 +118,7 @@ function testHitBreakpoint() {
// This will cause the breakpoint to be hit, and put us back in the
// paused state.
gDebuggee.binary_search([0, 2, 3, 5, 7, 10], 5);
callInTab(gTab, "binary_search", [0, 2, 3, 5, 7, 10], 5);
});
return deferred.promise;
@ -157,7 +156,6 @@ function testStepping() {
registerCleanupFunction(function() {
gTab = null;
gDebuggee = null;
gPanel = null;
gDebugger = null;
gEditor = null;

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

@ -8,12 +8,12 @@
const TAB_URL = EXAMPLE_URL + "doc_binary_search.html";
const JS_URL = EXAMPLE_URL + "code_binary_search.js";
let gDebuggee, gPanel, gDebugger, gEditor;
let gTab, gPanel, gDebugger, gEditor;
let gSources, gFrames, gPrefs, gOptions;
function test() {
initDebugger(TAB_URL).then(([aTab, aDebuggee, aPanel]) => {
gDebuggee = aDebuggee;
initDebugger(TAB_URL).then(([aTab,, aPanel]) => {
gTab = aTab;
gPanel = aPanel;
gDebugger = gPanel.panelWin;
gEditor = gDebugger.DebuggerView.editor;
@ -81,7 +81,7 @@ function testSetBreakpoint() {
// This will cause the breakpoint to be hit, and put us back in the
// paused state.
gDebuggee.binary_search([0, 2, 3, 5, 7, 10], 5);
callInTab(gTab, "binary_search", [0, 2, 3, 5, 7, 10], 5);
});
});
@ -135,7 +135,7 @@ function testResume() {
}
registerCleanupFunction(function() {
gDebuggee = null;
gTab = null;
gPanel = null;
gDebugger = null;
gEditor = null;

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

@ -8,12 +8,12 @@
const TAB_URL = EXAMPLE_URL + "doc_minified.html";
const JS_URL = EXAMPLE_URL + "code_math.js";
let gDebuggee, gPanel, gDebugger;
let gTab, gPanel, gDebugger;
let gEditor, gSources, gFrames;
function test() {
initDebugger(TAB_URL).then(([aTab, aDebuggee, aPanel]) => {
gDebuggee = aDebuggee;
initDebugger(TAB_URL).then(([aTab,, aPanel]) => {
gTab = aTab;
gPanel = aPanel;
gDebugger = gPanel.panelWin;
gEditor = gDebugger.DebuggerView.editor;
@ -64,7 +64,7 @@ function testSetBreakpoint() {
// This will cause the breakpoint to be hit, and put us back in the
// paused state.
gDebuggee.arithmetic();
callInTab(gTab, "arithmetic");
});
});
@ -72,7 +72,7 @@ function testSetBreakpoint() {
}
registerCleanupFunction(function() {
gDebuggee = null;
gTab = null;
gPanel = null;
gDebugger = null;
gEditor = null;

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

@ -16,7 +16,7 @@ DevToolsUtils.reportingDisabled = true;
let gPanel, gDebugger, gFrames, gSources, gPrefs, gOptions;
function test() {
initDebugger(TAB_URL).then(([aTab, aDebuggee, aPanel]) => {
initDebugger(TAB_URL).then(([aTab,, aPanel]) => {
gPanel = aPanel;
gDebugger = gPanel.panelWin;
gFrames = gDebugger.DebuggerView.StackFrames;

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

@ -10,9 +10,10 @@ loadSubScript("chrome://marionette/content/EventUtils.js", EventUtils);
dump("Frame script loaded.\n");
addMessageListener("test:call", function (message) {
dump("Calling function with name " + message.data + ".\n");
dump("Calling function with name " + message.data.name + ".\n");
XPCNativeWrapper.unwrap(content)[message.data]();
let data = message.data;
XPCNativeWrapper.unwrap(content)[data.name].apply(undefined, data.args);
sendAsyncMessage("test:call");
});

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

@ -963,7 +963,10 @@ function waitForMessageFromTab(tab, name) {
function callInTab(tab, name) {
info("Calling function with name " + name + " in tab.");
sendMessageToTab(tab, "test:call", name);
sendMessageToTab(tab, "test:call", {
name: name,
args: Array.prototype.slice.call(arguments, 2)
});
waitForMessageFromTab(tab, "test:call");
}