mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 999211 - Implement cancel editing mode button test on tablet. r=mcomella
This commit is contained in:
parent
e2bb8054b3
commit
c840287bfe
@ -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();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user