B2G/gecko/browser/base/content/test/browser_locationBarCommand.js
/* Checks that the URL was loaded in a new focused tab */
Checks that the URL was loaded in a new focused tab
Checks that the URL was loaded in a new focused tab
function checkNewTab(aTab) {
  info("URL should be loaded in a new focused tab");
  is(gURLBar.value, TEST_VALUE, "Urlbar still has the value we entered");
  is(gFocusManager.focusedElement, null, "There should be no focused element");
  is(gFocusManager.focusedWindow, gBrowser.contentWindow, "Content window should be focused");
  isnot(gBrowser.selectedTab, aTab, "New URL was loaded in a new tab");
}
function checkNewTab ( aTab ) { info ( "URL should be loaded in a new focused tab" ) ; is ( gURLBar . value , TEST_VALUE , "Urlbar still has the value we entered" ) ; is ( gFocusManager . focusedElement , null , "There should be no focused element" ) ; is ( gFocusManager . focusedWindow , gBrowser . contentWindow , "Content window should be focused" ) ; isnot ( gBrowser . selectedTab , aTab , "New URL was loaded in a new tab" ) ; }
Checks that the URL was loaded in a new focused tab
Checks that the URL was loaded in a new focused tab