B2G/gecko/toolkit/mozapps/extensions/test/xpinstall/browser_bug540558.js
// Tests that calling InstallTrigger.installChrome works
Tests that calling InstallTrigger.installChrome works
Tests that calling InstallTrigger . installChrome works
function test() {
  Harness.installEndedCallback = check_xpi_install;
  Harness.installsCompletedCallback = finish_test;
  Harness.setup();
  var pm = Services.perms;
  pm.add(makeURI("http://example.com/"), "install", pm.ALLOW_ACTION);
  gBrowser.selectedTab = gBrowser.addTab();
  gBrowser.loadURI(TESTROOT + "bug540558.html");
}
function test ( ) { Harness . installEndedCallback = check_xpi_install ; Harness . installsCompletedCallback = finish_test ; Harness . setup ( ) ; var pm = Services . perms ; pm . add ( makeURI ( "http://example.com/" ) , "install" , pm . ALLOW_ACTION ) ; gBrowser . selectedTab = gBrowser . addTab ( ) ; gBrowser . loadURI ( TESTROOT + "bug540558.html" ) ; }
Tests that calling InstallTrigger.installChrome works
Tests that calling InstallTrigger . installChrome works