зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1317400 - Part 3: Fix devtools tests. r=till
This commit is contained in:
Родитель
00b7bfa389
Коммит
61b1349ff4
|
@ -23,7 +23,7 @@ const TEST_DATA = [ // eslint-disable-line
|
|||
"Bubbling",
|
||||
"DOM2"
|
||||
],
|
||||
handler: "function es6Method(foo, bar) {\n" +
|
||||
handler: "es6Method(foo, bar) {\n" +
|
||||
" alert(\"obj.es6Method\");\n" +
|
||||
"}"
|
||||
}
|
||||
|
|
|
@ -24,7 +24,7 @@ var inputTests = [
|
|||
{
|
||||
input: "(function() { return 42; })",
|
||||
output: "function ()",
|
||||
printOutput: "function () { return 42; }",
|
||||
printOutput: "function() { return 42; }",
|
||||
suppressClick: true
|
||||
},
|
||||
|
||||
|
@ -40,7 +40,7 @@ var inputTests = [
|
|||
{
|
||||
input: "testobj1.testfn2",
|
||||
output: "function testfn2()",
|
||||
printOutput: "function () { return 42; }",
|
||||
printOutput: "function() { return 42; }",
|
||||
suppressClick: true
|
||||
},
|
||||
|
||||
|
|
|
@ -29,12 +29,12 @@ function run_test_with_server(server, cb) {
|
|||
addSources(debuggee);
|
||||
|
||||
threadClient.getSources(Task.async(function* (res) {
|
||||
do_check_true(res.sources.length === 3, "3 sources exist");
|
||||
do_check_eq(res.sources.length, 3, "3 sources exist");
|
||||
|
||||
yield threadClient.reconfigure({ useSourceMaps: false });
|
||||
|
||||
threadClient.getSources(function(res) {
|
||||
do_check_true(res.sources.length === 1, "1 source exist");
|
||||
do_check_eq(res.sources.length, 1, "1 source exist");
|
||||
client.close().then(cb);
|
||||
});
|
||||
}));
|
||||
|
|
Загрузка…
Ссылка в новой задаче