blob: 2deb08148acae5ce3eabaafe71d2f73ed4d4ed7e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
"use strict";
var gTestTab;
var gContentAPI;
var gContentWindow;
add_task(setup_UITourTest);
// Test that we can switch to about:newtab
add_UITour_task(function* test_aboutNewTab() {
let newTabLoaded = BrowserTestUtils.browserLoaded(gBrowser.selectedBrowser, false, "about:newtab");
info("Showing about:newtab");
yield gContentAPI.showNewTab();
info("Waiting for about:newtab to load");
yield newTabLoaded;
is(gBrowser.selectedBrowser.currentURI.spec, "about:newtab", "Loaded about:newtab");
});
|