Bug 749258: Fix debugger server tests exposed as broken when we start listening for errors. r=dcamp

This commit is contained in:
Panos Astithas 2012-05-01 15:31:00 -07:00
Родитель 94f1f2174d
Коммит 62c505068c
2 изменённых файлов: 5 добавлений и 7 удалений

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

@ -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);
});
});
});
});