1
0
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:
Doug Kearns
2011-01-25 22:17:52 +11:00
parent 685a0f5d30
commit 35e0ab9cf4
32 changed files with 8382 additions and 260 deletions

View 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: