Bug 1172653 - Prevent leaks in browser_markupview_keybindings_02.js by waiting for the console to be ready; r=me

--HG--
extra : rebase_source : 20fc91f3408ac4ef712e2555739f6c63c6f44b11
This commit is contained in:
Patrick Brosset 2015-06-09 12:54:11 +02:00
Родитель 1947969293
Коммит 57c2461e0f
1 изменённых файлов: 2 добавлений и 0 удалений

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

@ -18,8 +18,10 @@ add_task(function*() {
info("Pressing ESC and wait for the split-console to open");
let onSplitConsole = toolbox.once("split-console");
let onConsoleReady = toolbox.once("webconsole-ready");
EventUtils.synthesizeKey("VK_ESCAPE", {}, inspector.panelWin);
yield onSplitConsole;
yield onConsoleReady;
ok(toolbox.splitConsole, "The split console is shown.");
info("Pressing ESC again and wait for the split-console to close");