B2G/gecko/browser/components/preferences/tests/browser_advanced_update.js
/* Any copyright is dedicated to the Public Domain.
 * http://creativecommons.org/publicdomain/zero/1.0/ */
Any copyright is dedicated to the Public Domain.
Any copyright is dedicated to the Public Domain .
function test() {
  waitForExplicitFinish();
  resetPreferences();
  registerCleanupFunction(resetPreferences);
  function observer(win, topic, data) {
    Services.obs.removeObserver(observer, "advanced-pane-loaded");
    runTest(win);
  }
  Services.obs.addObserver(observer, "advanced-pane-loaded", false);
  Services.prefs.setBoolPref("browser.search.update", false);
  openDialog("chrome://browser/content/preferences/preferences.xul", "Preferences",
             "chrome,titlebar,toolbar,centerscreen,dialog=no", "paneAdvanced");
}
function test ( ) { waitForExplicitFinish ( ) ; resetPreferences ( ) ; registerCleanupFunction ( resetPreferences ) ; function observer ( win , topic , data ) { Services . obs . removeObserver ( observer , "advanced-pane-loaded" ) ; runTest ( win ) ; } Services . obs . addObserver ( observer , "advanced-pane-loaded" , false ) ; Services . prefs . setBoolPref ( "browser.search.update" , false ) ; openDialog ( "chrome://browser/content/preferences/preferences.xul" , "Preferences" , "chrome,titlebar,toolbar,centerscreen,dialog=no" , "paneAdvanced" ) ; }
Any copyright is dedicated to the Public Domain.
Any copyright is dedicated to the Public Domain .