michael@0: package org.mozilla.gecko.tests; michael@0: michael@0: import org.mozilla.gecko.tests.helpers.GeckoHelper; michael@0: import org.mozilla.gecko.tests.helpers.NavigationHelper; michael@0: michael@0: /** michael@0: * Tests that navigating through session history (ex: forward, back) sets the correct UI state. michael@0: */ michael@0: public class testSessionHistory extends UITest { michael@0: public void testSessionHistory() { michael@0: GeckoHelper.blockForReady(); michael@0: michael@0: NavigationHelper.enterAndLoadUrl(StringHelper.ROBOCOP_BLANK_PAGE_01_URL); michael@0: mToolbar.assertTitle(StringHelper.ROBOCOP_BLANK_PAGE_01_TITLE); michael@0: michael@0: NavigationHelper.enterAndLoadUrl(StringHelper.ROBOCOP_BLANK_PAGE_02_URL); michael@0: mToolbar.assertTitle(StringHelper.ROBOCOP_BLANK_PAGE_02_TITLE); michael@0: michael@0: NavigationHelper.enterAndLoadUrl(StringHelper.ROBOCOP_BLANK_PAGE_03_URL); michael@0: mToolbar.assertTitle(StringHelper.ROBOCOP_BLANK_PAGE_03_TITLE); michael@0: michael@0: NavigationHelper.goBack(); michael@0: mToolbar.assertTitle(StringHelper.ROBOCOP_BLANK_PAGE_02_TITLE); michael@0: michael@0: NavigationHelper.goBack(); michael@0: mToolbar.assertTitle(StringHelper.ROBOCOP_BLANK_PAGE_01_TITLE); michael@0: michael@0: NavigationHelper.goForward(); michael@0: mToolbar.assertTitle(StringHelper.ROBOCOP_BLANK_PAGE_02_TITLE); michael@0: michael@0: // TODO: Implement this functionality and uncomment. michael@0: /* michael@0: NavigationHelper.reload(); michael@0: mToolbar.assertTitle(StringHelper.ROBOCOP_BLANK_PAGE_02_TITLE); michael@0: */ michael@0: } michael@0: }