B2G/gecko/browser/devtools/scratchpad/test/browser_scratchpad_bug756681_display_non_error_exceptions.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 browserLoad() {
    gBrowser.selectedBrowser.removeEventListener("load", browserLoad, true);
    openScratchpad(runTests, {"state":{"text":""}});
  }, true);
  content.location = "data:text/html, test that exceptions are output as " +
      "comments correctly in Scratchpad";
}
function test ( ) { waitForExplicitFinish ( ) ; gBrowser . selectedTab = gBrowser . addTab ( ) ; gBrowser . selectedBrowser . addEventListener ( "load" , function browserLoad ( ) { gBrowser . selectedBrowser . removeEventListener ( "load" , browserLoad , true ) ; openScratchpad ( runTests , { "state" : { "text" : "" } } ) ; } , true ) ; content . location = "data:text/html, test that exceptions are output as " + "comments correctly in Scratchpad" ; }
Any copyright is dedicated to the Public Domain.
Any copyright is dedicated to the Public Domain .