summaryrefslogtreecommitdiffstats
path: root/browser/components/sessionstore/test/browser_480893.js
diff options
context:
space:
mode:
authorMatt A. Tobin <email@mattatobin.com>2018-02-03 06:00:38 -0500
committerMatt A. Tobin <email@mattatobin.com>2018-02-03 06:00:38 -0500
commit8148615da179fdd60f19018e13b4e94b95609cc6 (patch)
tree771fccdd99fa3adf35fdd2c81d8197b415a89b91 /browser/components/sessionstore/test/browser_480893.js
parent494802c1be7888025b95260d23db187467d2b9dd (diff)
downloadUXP-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/components/sessionstore/test/browser_480893.js')
-rw-r--r--browser/components/sessionstore/test/browser_480893.js47
1 files changed, 0 insertions, 47 deletions
diff --git a/browser/components/sessionstore/test/browser_480893.js b/browser/components/sessionstore/test/browser_480893.js
deleted file mode 100644
index e3ddb39b7..000000000
--- a/browser/components/sessionstore/test/browser_480893.js
+++ /dev/null
@@ -1,47 +0,0 @@
-"use strict";
-
-/**
- * Tests that we get sent to the right page when the user clicks
- * the "Close" button in about:sessionrestore
- */
-add_task(function*() {
- yield SpecialPowers.pushPrefEnv({
- "set": [
- ["browser.startup.page", 0],
- ]
- });
-
- let tab = gBrowser.addTab("about:sessionrestore");
- gBrowser.selectedTab = tab;
- let browser = tab.linkedBrowser;
- yield BrowserTestUtils.browserLoaded(browser, false, "about:sessionrestore");
-
- let doc = browser.contentDocument;
-
- // Click on the "Close" button after about:sessionrestore is loaded.
- doc.getElementById("errorCancel").click();
-
- yield BrowserTestUtils.browserLoaded(browser, false, "about:blank");
-
- // Test that starting a new session loads the homepage (set to http://mochi.test:8888)
- // if Firefox is configured to display a homepage at startup (browser.startup.page = 1)
- let homepage = "http://mochi.test:8888/";
- yield SpecialPowers.pushPrefEnv({
- "set": [
- ["browser.startup.homepage", homepage],
- ["browser.startup.page", 1],
- ]
- });
-
- browser.loadURI("about:sessionrestore");
- yield BrowserTestUtils.browserLoaded(browser, false, "about:sessionrestore");
- doc = browser.contentDocument;
-
- // Click on the "Close" button after about:sessionrestore is loaded.
- doc.getElementById("errorCancel").click();
- yield BrowserTestUtils.browserLoaded(browser);
-
- is(browser.currentURI.spec, homepage, "loaded page is the homepage");
-
- yield BrowserTestUtils.removeTab(tab);
-});