Bug 1370439 - Make sure new preferences page tests are running on the new preferences, r=jaws
authorTimothy Guan-tin Chien <timdream@gmail.com>
Fri, 09 Jun 2017 12:35:37 +0800
changeset 411355 ca350cb8a959f03603803eeb6621525604b6d1e7
parent 411354 656e918f28c03448a878e1159fe0c46e402d4a44
child 411356 55d4c283d94c9c6e7011161b4fe3fd89b97de166
push id7391
push usermtabara@mozilla.com
push dateMon, 12 Jun 2017 13:08:53 +0000
treeherdermozilla-beta@2191d7f87e2e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjaws
bugs1370439
milestone55.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 1370439 - Make sure new preferences page tests are running on the new preferences, r=jaws MozReview-Commit-ID: ECfoP7hzXDF
browser/components/preferences/in-content-new/tests/head.js
--- a/browser/components/preferences/in-content-new/tests/head.js
+++ b/browser/components/preferences/in-content-new/tests/head.js
@@ -1,13 +1,22 @@
 /* Any copyright is dedicated to the Public Domain.
  * http://creativecommons.org/publicdomain/zero/1.0/ */
 
 Components.utils.import("resource://gre/modules/Promise.jsm");
 
+// Tests within /browser/components/preferences/in-content-new/tests/
+// test the "new" preferences organization, after it was reorganized.
+// Thus, all of these tests should set the "oldOrganization" to false
+// before running.
+Services.prefs.setBoolPref("browser.preferences.useOldOrganization", false);
+registerCleanupFunction(function() {
+  Services.prefs.clearUserPref("browser.preferences.useOldOrganization");
+});
+
 const kDefaultWait = 2000;
 
 function is_hidden(aElement) {
   var style = aElement.ownerGlobal.getComputedStyle(aElement);
   if (style.display == "none")
     return true;
   if (style.visibility != "visible")
     return true;