]> git.donarmstrong.com Git - dactyl.git/blob - common/tests/functional/testAboutPage.js
Initial import of 1.0~b6
[dactyl.git] / common / tests / functional / testAboutPage.js
1 var setupModule = function (module) {
2     controller = mozmill.getBrowserController();
3 };
4
5 var testAboutPage_WhenOpened_PageIsLoadedWithExpectedTitle = function () {
6     const ABOUT_PAGE_URL = "about:pentadactyl";
7     const EXPECTED_TITLE = "About Pentadactyl";
8     const BLANK_PAGE_URL = "about:blank";
9
10     controller.open(BLANK_PAGE_URL);
11     controller.waitForPageLoad(controller.tabs.activeTab);
12     controller.open(ABOUT_PAGE_URL);
13     controller.waitForPageLoad(controller.tabs.activeTab);
14
15     controller.assert(function () controller.tabs.activeTab.title === EXPECTED_TITLE);
16 };
17
18 // vim: sw=4 ts=8 et: