зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1530285 - Remove waitForNewTabEvent from browser/base/content/test/siteIdentity/head.js r=johannh
Removed waitForNewTabEvent from browser/base/content/test/siteIdentity/head.js as it doesn't seem to be used anymore. Differential Revision: https://phabricator.services.mozilla.com/D21868 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
4d1c376ac0
Коммит
4c4dd32808
|
@ -1,20 +1,5 @@
|
|||
var {XPCOMUtils} = ChromeUtils.import("resource://gre/modules/XPCOMUtils.jsm");
|
||||
|
||||
/**
|
||||
* Returns a Promise that resolves once a new tab has been opened in
|
||||
* a xul:tabbrowser.
|
||||
*
|
||||
* @param aTabBrowser
|
||||
* The xul:tabbrowser to monitor for a new tab.
|
||||
* @return {Promise}
|
||||
* Resolved when the new tab has been opened.
|
||||
* @resolves to the TabOpen event that was fired.
|
||||
* @rejects Never.
|
||||
*/
|
||||
function waitForNewTabEvent(aTabBrowser) {
|
||||
return BrowserTestUtils.waitForEvent(aTabBrowser.tabContainer, "TabOpen");
|
||||
}
|
||||
|
||||
/**
|
||||
* Waits for a load (or custom) event to finish in a given tab. If provided
|
||||
* load an uri into the tab.
|
||||
|
|
Загрузка…
Ссылка в новой задаче