B2G/gecko/browser/devtools/scratchpad/test/browser_scratchpad_initialization.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();
  gBrowser.selectedTab = gBrowser.addTab();
  gBrowser.selectedBrowser.addEventListener("load", function onLoad() {
    gBrowser.selectedBrowser.removeEventListener("load", onLoad, true);
    ok(window.Scratchpad, "Scratchpad variable exists");
    openScratchpad(runTests);
  }, true);
  content.location = "data:text/html,initialization test for Scratchpad";
}
function test ( ) { waitForExplicitFinish ( ) ; gBrowser . selectedTab = gBrowser . addTab ( ) ; gBrowser . selectedBrowser . addEventListener ( "load" , function onLoad ( ) { gBrowser . selectedBrowser . removeEventListener ( "load" , onLoad , true ) ; ok ( window . Scratchpad , "Scratchpad variable exists" ) ; openScratchpad ( runTests ) ; } , true ) ; content . location = "data:text/html,initialization test for Scratchpad" ; }
Any copyright is dedicated to the Public Domain.
Any copyright is dedicated to the Public Domain .