mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-02-24 01:55:46 +01:00
Add experimental Mozmill functional tests.
--HG-- extra : rebase_source : eb8095f9d17f9c97706f93f670dd880c2b56f050
This commit is contained in:
18
common/tests/functional/testAboutPage.js
Normal file
18
common/tests/functional/testAboutPage.js
Normal file
@@ -0,0 +1,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:
|
||||
Reference in New Issue
Block a user