Bug 1570897 - Add test to check that about:devtools-toolbox is focused after reload r=ochameau
authorJulian Descottes <jdescottes@mozilla.com>
Mon, 05 Aug 2019 11:47:25 +0000
changeset 486176 03a7d222410bccc10ec98c552728606a148b9198
parent 486175 8e332c09026d3f2d1c397131128278264dc9729a
child 486177 9c91b33629b6e33de140b602361bbd27d686128a
push id36391
push usermalexandru@mozilla.com
push dateMon, 05 Aug 2019 15:55:27 +0000
treeherdermozilla-central@9c91b33629b6 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersochameau
bugs1570897
milestone70.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
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
devtools/client/aboutdebugging-new/test/browser/browser_aboutdebugging_devtoolstoolbox_reload.js
--- a/devtools/client/aboutdebugging-new/test/browser/browser_aboutdebugging_devtoolstoolbox_reload.js
+++ b/devtools/client/aboutdebugging-new/test/browser/browser_aboutdebugging_devtoolstoolbox_reload.js
@@ -52,16 +52,23 @@ async function testReloadAboutDevToolsTo
   info("Wait for requests to settle before reloading");
   await toolbox.target.client.waitForRequestsToSettle();
 
   info("Reload about:devtools-toolbox page");
   devtoolsBrowser.reload();
   await gDevTools.once("toolbox-ready");
   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");
   ok(
     devtoolsBrowser.contentDocument.querySelector(".debug-target-info"),
     "about:devtools-toolbox page displays correctly"
   );
 
   await closeAboutDevtoolsToolbox(document, devtoolsTab, window);
   await removeTab(tab);