Bug 999211 - Implement cancel editing mode button test on tablet. r=mcomella

This commit is contained in:
vivek 2014-06-14 11:49:00 -04:00
parent e2bb8054b3
commit c840287bfe

View File

@ -150,19 +150,7 @@ public class ToolbarComponent extends BaseComponent {
public ToolbarComponent dismissEditingMode() {
assertIsEditing();
// Cancel Button not implemeneted in tablet.
if (DeviceHelper.isTablet()) {
if (getUrlEditText().isInputMethodTarget()) {
// Drop the soft keyboard.
// TODO: Solo.hideSoftKeyboard() does not clear focus, causing unexpected
// behavior, but we may want to use it over goBack().
mSolo.goBack();
}
mSolo.goBack();
} else {
mSolo.clickOnView(getEditCancelButton());
}
mSolo.clickOnView(getEditCancelButton());
waitForNotEditing();