Bug 890555 - Fix silent bugs in some toolkit/devtools/server xpcshell tests; r=dcamp

This commit is contained in:
Jim Blandy 2013-08-07 15:44:00 -07:00
Родитель 5fd94c437e
Коммит 69df9b5a6a
3 изменённых файлов: 26 добавлений и 26 удалений

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

@ -53,7 +53,7 @@ function test_black_box()
"" + function runTest() { // line 1
doStuff( // line 2
function (n) { // line 3
n; // line 4
return n; // line 4
} // line 5
); // line 6
} // line 7

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

@ -47,15 +47,15 @@ function test_black_box()
);
Components.utils.evalInSandbox(
"" + function runTest() { // line 1
doStuff( // line 2
function (n) { // line 3
debugger; // line 4
} // line 5
); // line 6
} // line 7
+ "\ndebugger;\n" // line 8
+ "runTest()", // line 9
"" + function runTest() { // line 1
doStuff( // line 2
function (n) { // line 3
debugger; // line 4
} // line 5
); // line 6
} // line 7
+ "\ndebugger;\n" // line 8
+ "try { runTest() } catch (ex) { }", // line 9
gDebuggee,
"1.8",
SOURCE_URL,

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

@ -71,20 +71,20 @@ function test_simple_stepping()
});
gDebuggee.eval("var line0 = Error().lineNumber;\n" +
"function f() {\n" + // line0 + 1
" debugger;\n" + // line0 + 2
" var a = 10;\n" + // line0 + 3
" return a;\n" + // line0 + 4
"}\n" + // line0 + 5
"function g() {\n" + // line0 + 6
" debugger;\n" + // line0 + 7
"}\n" + // line0 + 8
"function h() {\n" + // line0 + 9
" debugger;\n" + // line0 + 10
" throw 'ah';\n" + // line0 + 11
" return 2;\n" + // line0 + 12
"}\n" + // line0 + 13
"f();\n" + // line0 + 14
"g();\n" + // line0 + 15
"h();\n"); // line0 + 16
"function f() {\n" + // line0 + 1
" debugger;\n" + // line0 + 2
" var a = 10;\n" + // line0 + 3
" return a;\n" + // line0 + 4
"}\n" + // line0 + 5
"function g() {\n" + // line0 + 6
" debugger;\n" + // line0 + 7
"}\n" + // line0 + 8
"function h() {\n" + // line0 + 9
" debugger;\n" + // line0 + 10
" throw 'ah';\n" + // line0 + 11
" return 2;\n" + // line0 + 12
"}\n" + // line0 + 13
"f();\n" + // line0 + 14
"g();\n" + // line0 + 15
"try { h() } catch (ex) { };\n"); // line0 + 16
}