Bug 1304178 - Reset the splitconsole pref after every test to make sure it gets cleaned up;r=linclark draft
authorBrian Grinstead <bgrinstead@mozilla.com>
Thu, 06 Oct 2016 14:19:20 -0700
changeset 421772 78d7cf8b3079f62bb7dd028a0f2de27a6a75d2cb
parent 421771 ba8fe7e276d0a0221c372ab2beaddc2c27000c84
child 421773 e93ad8202f940c3cd0a8a747f68abf8f74a6027a
push id31595
push userbgrinstead@mozilla.com
push dateThu, 06 Oct 2016 21:20:18 +0000
reviewerslinclark
bugs1304178
milestone52.0a1
Bug 1304178 - Reset the splitconsole pref after every test to make sure it gets cleaned up;r=linclark MozReview-Commit-ID: Bt7KrCXaUwV
devtools/client/framework/test/shared-head.js
--- a/devtools/client/framework/test/shared-head.js
+++ b/devtools/client/framework/test/shared-head.js
@@ -91,16 +91,17 @@ function getFrameScript() {
 }
 
 flags.testing = true;
 registerCleanupFunction(() => {
   flags.testing = false;
   Services.prefs.clearUserPref("devtools.dump.emit");
   Services.prefs.clearUserPref("devtools.toolbox.host");
   Services.prefs.clearUserPref("devtools.toolbox.previousHost");
+  Services.prefs.clearUserPref("devtools.toolbox.splitconsoleEnabled");
 });
 
 registerCleanupFunction(function* cleanup() {
   while (gBrowser.tabs.length > 1) {
     yield closeTabAndToolbox(gBrowser.selectedTab);
   }
 });