Bug 1570897 - Add test to check that about:devtools-toolbox is focused after reload r=ochameau

Depends on D40232

Differential Revision: https://phabricator.services.mozilla.com/D40390

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Julian Descottes 2019-08-05 11:47:25 +00:00
Родитель 5632d25ece
Коммит 84eb11c4cf
1 изменённых файлов: 7 добавлений и 0 удалений

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

@ -57,6 +57,13 @@ async function testReloadAboutDevToolsToolbox(toolId) {
await gDevTools.once("toolbox-ready"); await gDevTools.once("toolbox-ready");
ok(true, "Toolbox is re-created again"); ok(true, "Toolbox is re-created again");
// Check that about:devtools-toolbox is still selected tab. See Bug 1570692.
is(
devtoolsBrowser,
gBrowser.selectedBrowser,
"about:devtools-toolbox is still selected"
);
info("Check whether about:devtools-toolbox page displays correctly"); info("Check whether about:devtools-toolbox page displays correctly");
ok( ok(
devtoolsBrowser.contentDocument.querySelector(".debug-target-info"), devtoolsBrowser.contentDocument.querySelector(".debug-target-info"),