summaryrefslogtreecommitdiff
path: root/common/tests/functional/testAboutPage.js
blob: 2dd5cfc0230b73938a7ad6da179775d1c1b2165c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
var setupModule = function (module) {
    controller = mozmill.getBrowserController();
};

var testAboutPage_WhenOpened_PageIsLoadedWithExpectedTitle = function () {
    const ABOUT_PAGE_URL = "about:pentadactyl";
    const EXPECTED_TITLE = "About Pentadactyl";
    const BLANK_PAGE_URL = "about:blank";

    controller.open(BLANK_PAGE_URL);
    controller.waitForPageLoad(controller.tabs.activeTab);
    controller.open(ABOUT_PAGE_URL);
    controller.waitForPageLoad(controller.tabs.activeTab);

    controller.assert(function () controller.tabs.activeTab.title === EXPECTED_TITLE);
};

// vim: sw=4 ts=8 et: