B2G/gecko/browser/components/preferences/in-content/tests/browser_bug567487.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();
  function observer(win, topic, data) {
    if (topic != "main-pane-loaded")
      return;
    Services.obs.removeObserver(observer, "main-pane-loaded");
    runTest(win);
  }
  Services.obs.addObserver(observer, "main-pane-loaded", false);
  gBrowser.selectedTab = gBrowser.addTab("about:preferences");
}
function test ( ) { waitForExplicitFinish ( ) ; resetPreferences ( ) ; function observer ( win , topic , data ) { if ( topic != "main-pane-loaded" ) return ; Services . obs . removeObserver ( observer , "main-pane-loaded" ) ; runTest ( win ) ; } Services . obs . addObserver ( observer , "main-pane-loaded" , false ) ; gBrowser . selectedTab = gBrowser . addTab ( "about:preferences" ) ; }
Any copyright is dedicated to the Public Domain.
Any copyright is dedicated to the Public Domain .