Bug 1145049 - Cleanup correctly tests run from browser/devtools/shared/test. r=bgrins
☠☠ backed out by 5a4b8d5b0267 ☠ ☠
authorAlexandre Poirot <poirot.alex@gmail.com>
Wed, 15 Apr 2015 00:35:33 +0200
changeset 239319 d800c6c9493d6ce02aca4c743acf19f1202db011
parent 239318 6c4285b179df8b999f4e41ab9c6274fbc3eb9ea0
child 239320 4cf74e040c0adf7a2dcd5bf120aa17cbad6c5140
push id28589
push userryanvm@gmail.com
push dateWed, 15 Apr 2015 19:13:10 +0000
treeherdermozilla-central@24ccca4707eb [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbgrins
bugs1145049
milestone40.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 1145049 - Cleanup correctly tests run from browser/devtools/shared/test. r=bgrins
browser/devtools/shared/test/head.js
--- a/browser/devtools/shared/test/head.js
+++ b/browser/devtools/shared/test/head.js
@@ -39,16 +39,19 @@ function addTab(aURL, aCallback)
 }
 
 function promiseTab(aURL) {
   return new Promise(resolve =>
     addTab(aURL, resolve));
 }
 
 registerCleanupFunction(function tearDown() {
+  let target = TargetFactory.forTab(gBrowser.selectedTab);
+  yield gDevTools.closeToolbox(target);
+
   while (gBrowser.tabs.length > 1) {
     gBrowser.removeCurrentTab();
   }
 
   console = undefined;
 });
 
 function catchFail(func) {