mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-22 09:45:41 +00:00
Bug 1561435 - Fix test failures for devtools/server/, r=standard8
# ignore-this-changeset Differential Revision: https://phabricator.services.mozilla.com/D35893 --HG-- extra : source : 9238d499b425da9f71e9afa887b200841b73ca1a extra : intermediate-source : aa4fc8c9ee0d199e5b78bc6827f677605f71e70f
This commit is contained in:
parent
d8903e9911
commit
66e8f7440d
@ -41,39 +41,34 @@ function test_black_box() {
|
|||||||
gThreadClient.resume().then(test_black_box_breakpoint);
|
gThreadClient.resume().then(test_black_box_breakpoint);
|
||||||
});
|
});
|
||||||
|
|
||||||
/* eslint-disable no-multi-spaces, no-undef */
|
/* eslint-disable no-undef */
|
||||||
|
// prettier-ignore
|
||||||
Cu.evalInSandbox(
|
Cu.evalInSandbox(
|
||||||
"" +
|
"" + function doStuff(k) { // line 1
|
||||||
function doStuff(k) {
|
const arg = 15; // line 2 - Break here
|
||||||
// line 1
|
k(arg); // line 3
|
||||||
const arg = 15; // line 2 - Break here
|
}, // line 4
|
||||||
k(arg); // line 3
|
|
||||||
}, // line 4
|
|
||||||
gDebuggee,
|
gDebuggee,
|
||||||
"1.8",
|
"1.8",
|
||||||
BLACK_BOXED_URL,
|
BLACK_BOXED_URL,
|
||||||
1
|
1
|
||||||
);
|
);
|
||||||
|
// prettier-ignore
|
||||||
Cu.evalInSandbox(
|
Cu.evalInSandbox(
|
||||||
"" +
|
"" + function runTest() { // line 1
|
||||||
function runTest() {
|
doStuff( // line 2
|
||||||
// line 1
|
function(n) { // line 3
|
||||||
doStuff(
|
debugger; // line 5
|
||||||
// line 2
|
} // line 6
|
||||||
function(n) {
|
); // line 7
|
||||||
// line 3
|
} // line 8
|
||||||
debugger; // line 5
|
+ "\n debugger;", // line 9
|
||||||
} // line 6
|
|
||||||
); // line 7
|
|
||||||
} + // line 8
|
|
||||||
"\n debugger;", // line 9
|
|
||||||
gDebuggee,
|
gDebuggee,
|
||||||
"1.8",
|
"1.8",
|
||||||
SOURCE_URL,
|
SOURCE_URL,
|
||||||
1
|
1
|
||||||
);
|
);
|
||||||
/* eslint-enable no-multi-spaces, no-undef */
|
/* eslint-enable no-undef */
|
||||||
}
|
}
|
||||||
|
|
||||||
function test_black_box_breakpoint() {
|
function test_black_box_breakpoint() {
|
||||||
|
@ -41,32 +41,27 @@ function test_black_box() {
|
|||||||
});
|
});
|
||||||
|
|
||||||
/* eslint-disable no-multi-spaces, no-undef */
|
/* eslint-disable no-multi-spaces, no-undef */
|
||||||
|
// prettier-ignore
|
||||||
Cu.evalInSandbox(
|
Cu.evalInSandbox(
|
||||||
"" +
|
"" + function doStuff(k) { // line 1
|
||||||
function doStuff(k) {
|
debugger; // line 2 - Break here
|
||||||
// line 1
|
k(100); // line 3
|
||||||
debugger; // line 2 - Break here
|
}, // line 4
|
||||||
k(100); // line 3
|
|
||||||
}, // line 4
|
|
||||||
gDebuggee,
|
gDebuggee,
|
||||||
"1.8",
|
"1.8",
|
||||||
BLACK_BOXED_URL,
|
BLACK_BOXED_URL,
|
||||||
1
|
1
|
||||||
);
|
);
|
||||||
|
// prettier-ignore
|
||||||
Cu.evalInSandbox(
|
Cu.evalInSandbox(
|
||||||
"" +
|
"" + function runTest() { // line 1
|
||||||
function runTest() {
|
doStuff( // line 2
|
||||||
// line 1
|
function(n) { // line 3
|
||||||
doStuff(
|
Math.abs(n); // line 4 - Break here
|
||||||
// line 2
|
} // line 5
|
||||||
function(n) {
|
); // line 6
|
||||||
// line 3
|
} // line 7
|
||||||
Math.abs(n); // line 4 - Break here
|
+ "\n debugger;", // line 8
|
||||||
} // line 5
|
|
||||||
); // line 6
|
|
||||||
} + // line 7
|
|
||||||
"\n debugger;", // line 8
|
|
||||||
gDebuggee,
|
gDebuggee,
|
||||||
"1.8",
|
"1.8",
|
||||||
SOURCE_URL,
|
SOURCE_URL,
|
||||||
|
@ -118,7 +118,7 @@ async function testThrow(dbg) {
|
|||||||
packet = await stepOut(threadClient);
|
packet = await stepOut(threadClient);
|
||||||
deepEqual(
|
deepEqual(
|
||||||
getPauseLocation(packet),
|
getPauseLocation(packet),
|
||||||
{ line: 24, column: 0 },
|
{ line: 23, column: 0 },
|
||||||
`stepOut location in doThrow`
|
`stepOut location in doThrow`
|
||||||
);
|
);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user