michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: function test() { michael@0: // Create a new tab and load about:addons michael@0: let blanktab = gBrowser.addTab(); michael@0: gBrowser.selectedTab = blanktab; michael@0: BrowserOpenAddonsMgr(); michael@0: michael@0: is(blanktab, gBrowser.selectedTab, "Current tab should be blank tab"); michael@0: // Verify that about:addons loads michael@0: waitForExplicitFinish(); michael@0: gBrowser.selectedBrowser.addEventListener("load", function() { michael@0: gBrowser.selectedBrowser.removeEventListener("load", arguments.callee, true); michael@0: let browser = blanktab.linkedBrowser; michael@0: is(browser.currentURI.spec, "about:addons", "about:addons should load into blank tab."); michael@0: gBrowser.removeTab(blanktab); michael@0: finish(); michael@0: }, true); michael@0: }