1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-20 00:17:58 +01:00
Files
pentadactyl-pm/common/tests/functional/testAboutPage.js
Kris Maglione 1524c52969 Merge default.
--HG--
branch : key-processing
2011-01-28 22:19:02 -05:00

19 lines
611 B
JavaScript

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: