зеркало из https://github.com/mozilla/gecko-dev.git
Bug 958517 - Create a 'Page' menu and move some of the URL context menu actions there (test changes) r=lucasr
This commit is contained in:
Родитель
121b48910d
Коммит
c3c74023b3
|
@ -166,6 +166,7 @@ public class StringHelper {
|
|||
|
||||
// Android 3.0+
|
||||
public static final String TOOLS_LABEL = "Tools";
|
||||
public static final String PAGE_LABEL = "Page";
|
||||
|
||||
// Android 2.3 and lower only
|
||||
public static final String MORE_LABEL = "More";
|
||||
|
|
|
@ -107,9 +107,16 @@ public class testClearPrivateData extends PixelTest {
|
|||
|
||||
//Verify if there are settings to be clear if so clear them from the URL bar context menu
|
||||
public void checkOption(String option, String button) {
|
||||
final View toolbarView = mSolo.getView("browser_toolbar");
|
||||
mSolo.clickLongOnView(toolbarView);
|
||||
mAsserter.ok(waitForText(StringHelper.CONTEXT_MENU_ITEMS_IN_URL_BAR[2]), "Waiting for the pop-up to open", "Pop up was openend");
|
||||
if (mDevice.version.equals("2.x")) {
|
||||
// Use the context menu in pre-11
|
||||
final View toolbarView = mSolo.getView("browser_toolbar");
|
||||
mSolo.clickLongOnView(toolbarView);
|
||||
mAsserter.ok(waitForText(StringHelper.CONTEXT_MENU_ITEMS_IN_URL_BAR[2]), "Waiting for the pop-up to open", "Pop up was opened");
|
||||
} else {
|
||||
// Use the Page menu in 11+
|
||||
selectMenuItem(StringHelper.PAGE_LABEL);
|
||||
mAsserter.ok(waitForText(StringHelper.CONTEXT_MENU_ITEMS_IN_URL_BAR[2]), "Waiting for the submenu to open", "Submenu was opened");
|
||||
}
|
||||
mSolo.clickOnText(StringHelper.CONTEXT_MENU_ITEMS_IN_URL_BAR[2]);
|
||||
mAsserter.ok(waitForText(option), "Verify that the option: " + option + " is in the list", "The option is in the list. There are settings to clear");
|
||||
mSolo.clickOnButton(button);
|
||||
|
|
Загрузка…
Ссылка в новой задаче