mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-08 04:27:37 +00:00
35 lines
1.3 KiB
Java
35 lines
1.3 KiB
Java
package org.mozilla.gecko.tests;
|
|
|
|
import org.mozilla.gecko.tests.helpers.GeckoHelper;
|
|
import org.mozilla.gecko.tests.helpers.NavigationHelper;
|
|
|
|
/**
|
|
* Tests that navigating through session history (ex: forward, back) sets the correct UI state.
|
|
*/
|
|
public class testSessionHistory extends UITest {
|
|
public void testSessionHistory() {
|
|
GeckoHelper.blockForReady();
|
|
|
|
NavigationHelper.enterAndLoadUrl(StringHelper.ROBOCOP_BLANK_PAGE_01_URL);
|
|
mToolbar.assertTitle(StringHelper.ROBOCOP_BLANK_PAGE_01_TITLE);
|
|
|
|
NavigationHelper.enterAndLoadUrl(StringHelper.ROBOCOP_BLANK_PAGE_02_URL);
|
|
mToolbar.assertTitle(StringHelper.ROBOCOP_BLANK_PAGE_02_TITLE);
|
|
|
|
NavigationHelper.enterAndLoadUrl(StringHelper.ROBOCOP_BLANK_PAGE_03_URL);
|
|
mToolbar.assertTitle(StringHelper.ROBOCOP_BLANK_PAGE_03_TITLE);
|
|
|
|
NavigationHelper.goBack();
|
|
mToolbar.assertTitle(StringHelper.ROBOCOP_BLANK_PAGE_02_TITLE);
|
|
|
|
NavigationHelper.goBack();
|
|
mToolbar.assertTitle(StringHelper.ROBOCOP_BLANK_PAGE_01_TITLE);
|
|
|
|
NavigationHelper.goForward();
|
|
mToolbar.assertTitle(StringHelper.ROBOCOP_BLANK_PAGE_02_TITLE);
|
|
|
|
NavigationHelper.reload();
|
|
mToolbar.assertTitle(StringHelper.ROBOCOP_BLANK_PAGE_02_TITLE);
|
|
}
|
|
}
|