зеркало из 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",
|
"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);
|
||||||
});
|
});
|
||||||
}));
|
}));
|
||||||
|
|
Загрузка…
Ссылка в новой задаче