diff options
author | Matt A. Tobin <email@mattatobin.com> | 2018-02-03 06:00:38 -0500 |
---|---|---|
committer | Matt A. Tobin <email@mattatobin.com> | 2018-02-03 06:00:38 -0500 |
commit | 8148615da179fdd60f19018e13b4e94b95609cc6 (patch) | |
tree | 771fccdd99fa3adf35fdd2c81d8197b415a89b91 /browser/base/content/test/general/browser_bug462673.js | |
parent | 494802c1be7888025b95260d23db187467d2b9dd (diff) | |
download | UXP-8148615da179fdd60f19018e13b4e94b95609cc6.tar UXP-8148615da179fdd60f19018e13b4e94b95609cc6.tar.gz UXP-8148615da179fdd60f19018e13b4e94b95609cc6.tar.lz UXP-8148615da179fdd60f19018e13b4e94b95609cc6.tar.xz UXP-8148615da179fdd60f19018e13b4e94b95609cc6.zip |
Remove browser tests - Part 1: The Tests (except for experiments)
Diffstat (limited to 'browser/base/content/test/general/browser_bug462673.js')
-rw-r--r-- | browser/base/content/test/general/browser_bug462673.js | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/browser/base/content/test/general/browser_bug462673.js b/browser/base/content/test/general/browser_bug462673.js deleted file mode 100644 index f5b090917..000000000 --- a/browser/base/content/test/general/browser_bug462673.js +++ /dev/null @@ -1,36 +0,0 @@ -add_task(function* () { - var win = openDialog(getBrowserURL(), "_blank", "chrome,all,dialog=no"); - yield SimpleTest.promiseFocus(win); - - let tab = win.gBrowser.tabContainer.firstChild; - yield promiseTabLoadEvent(tab, getRootDirectory(gTestPath) + "test_bug462673.html"); - - is(win.gBrowser.browsers.length, 2, "test_bug462673.html has opened a second tab"); - is(win.gBrowser.selectedTab, tab.nextSibling, "dependent tab is selected"); - win.gBrowser.removeTab(tab); - - // Closing a tab will also close its parent chrome window, but async - yield promiseWindowWillBeClosed(win); -}); - -add_task(function* () { - var win = openDialog(getBrowserURL(), "_blank", "chrome,all,dialog=no"); - yield SimpleTest.promiseFocus(win); - - let tab = win.gBrowser.tabContainer.firstChild; - yield promiseTabLoadEvent(tab, getRootDirectory(gTestPath) + "test_bug462673.html"); - - var newTab = win.gBrowser.addTab(); - var newBrowser = newTab.linkedBrowser; - win.gBrowser.removeTab(tab); - ok(!win.closed, "Window stays open"); - if (!win.closed) { - is(win.gBrowser.tabContainer.childElementCount, 1, "Window has one tab"); - is(win.gBrowser.browsers.length, 1, "Window has one browser"); - is(win.gBrowser.selectedTab, newTab, "Remaining tab is selected"); - is(win.gBrowser.selectedBrowser, newBrowser, "Browser for remaining tab is selected"); - is(win.gBrowser.mTabBox.selectedPanel, newBrowser.parentNode.parentNode.parentNode.parentNode, "Panel for remaining tab is selected"); - } - - yield promiseWindowClosed(win); -}); |