Bug 1430441 - Part 1: Use Async Function in devtools/client/webconsole/test/browser_console_keyboard_accessibility.js r=bgrins

This commit is contained in:
Tooru Fujisawa 2018-01-20 20:40:10 +09:00
Родитель df159bed3e
Коммит 37e588208f
1 изменённых файлов: 5 добавлений и 5 удалений

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

@ -7,13 +7,13 @@
"use strict";
add_task(function* () {
add_task(async function () {
const TEST_URI = "http://example.com/browser/devtools/client/webconsole/" +
"test/test-console.html";
yield loadTab(TEST_URI);
await loadTab(TEST_URI);
let hud = yield openConsole();
let hud = await openConsole();
ok(hud, "Web Console opened");
info("dump some spew into the console for scrolling");
@ -21,7 +21,7 @@ add_task(function* () {
"console.log('foobarz' + i);" +
"}})();");
yield waitForMessages({
await waitForMessages({
webconsole: hud,
messages: [{
text: "foobarz99",
@ -61,7 +61,7 @@ add_task(function* () {
}
synthesizeKeyShortcut(clearShortcut);
});
yield hud.jsterm.once("messages-cleared");
await hud.jsterm.once("messages-cleared");
is(hud.outputNode.textContent.indexOf("foobarz1"), -1, "output cleared");
is(hud.jsterm.inputNode.getAttribute("focused"), "true",