зеркало из https://github.com/mozilla/gecko-dev.git
Bug 749258: Fix debugger server tests exposed as broken when we start listening for errors. r=dcamp
This commit is contained in:
Родитель
94f1f2174d
Коммит
62c505068c
|
@ -27,8 +27,8 @@ function run_test()
|
|||
|
||||
function test_breakpoint_running()
|
||||
{
|
||||
let path = getFilePath('test_breakpoint-01.js');
|
||||
let location = { url: path, line: gDebuggee.line0 + 3};
|
||||
let path = getFilePath('test_breakpoint-02.js');
|
||||
let location = { url: path, line: gDebuggee.line0 + 2};
|
||||
|
||||
gDebuggee.eval("var line0 = Error().lineNumber;\n" +
|
||||
"var a = 1;\n" + // line0 + 1
|
||||
|
@ -37,8 +37,6 @@ function test_breakpoint_running()
|
|||
// Setting the breakpoint later should interrupt the debuggee.
|
||||
gThreadClient.addOneTimeListener("paused", function (aEvent, aPacket) {
|
||||
do_check_eq(aPacket.type, "paused");
|
||||
do_check_eq(aPacket.frame.where.url, path);
|
||||
do_check_eq(aPacket.frame.where.line, location);
|
||||
do_check_eq(aPacket.why.type, "interrupted");
|
||||
});
|
||||
|
||||
|
|
|
@ -70,10 +70,10 @@ function release_grips(aFrameArgs, aThreadGrips)
|
|||
arg_grips(aFrameArgs, function (aNewGrips) {
|
||||
for (let i = 0; i < aNewGrips.length; i++) {
|
||||
do_check_neq(aThreadGrips[i].actor, aNewGrips[i].actor);
|
||||
gThreadClient.resume(function () {
|
||||
finishClient(gClient);
|
||||
});
|
||||
}
|
||||
gThreadClient.resume(function () {
|
||||
finishClient(gClient);
|
||||
});
|
||||
});
|
||||
});
|
||||
});
|
||||
|
|
Загрузка…
Ссылка в новой задаче