Bug 1317400 - Part 3: Fix devtools tests. r=till

This commit is contained in:
Tooru Fujisawa 2017-03-04 20:37:14 +09:00
Родитель 00b7bfa389
Коммит 61b1349ff4
3 изменённых файлов: 5 добавлений и 5 удалений

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

@ -23,7 +23,7 @@ const TEST_DATA = [ // eslint-disable-line
"Bubbling", "Bubbling",
"DOM2" "DOM2"
], ],
handler: "function es6Method(foo, bar) {\n" + handler: "es6Method(foo, bar) {\n" +
" alert(\"obj.es6Method\");\n" + " alert(\"obj.es6Method\");\n" +
"}" "}"
} }

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

@ -29,12 +29,12 @@ function run_test_with_server(server, cb) {
addSources(debuggee); addSources(debuggee);
threadClient.getSources(Task.async(function* (res) { 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 }); yield threadClient.reconfigure({ useSourceMaps: false });
threadClient.getSources(function(res) { 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); client.close().then(cb);
}); });
})); }));