Bug 948591 - Intermittent testClearPrivateData | Exception caught - junit.framework.AssertionFailedError: Text string: '^Settings$' is not found! r=mcomella

This commit is contained in:
Jonathan Almeida [:jonalmeida] 2015-08-17 00:00:00 -07:00
parent d43b123e65
commit 26f0001835
2 changed files with 10 additions and 14 deletions

View File

@ -15,11 +15,7 @@ public interface Actions {
RIGHT,
ENTER,
MENU,
/**
* @deprecated Use Solo.goBack() in Robocop instead.
*/
@Deprecated
BACK
DELETE,
}
public interface EventExpecter {

View File

@ -337,25 +337,25 @@ public class FennecNativeActions implements Actions {
public void sendSpecialKey(SpecialKey button) {
switch(button) {
case DOWN:
sendKeyCode(KeyEvent.KEYCODE_DPAD_DOWN);
sendKeyCode(Solo.DOWN);
break;
case UP:
sendKeyCode(KeyEvent.KEYCODE_DPAD_UP);
sendKeyCode(Solo.UP);
break;
case LEFT:
sendKeyCode(KeyEvent.KEYCODE_DPAD_LEFT);
sendKeyCode(Solo.LEFT);
break;
case RIGHT:
sendKeyCode(KeyEvent.KEYCODE_DPAD_RIGHT);
sendKeyCode(Solo.RIGHT);
break;
case ENTER:
sendKeyCode(KeyEvent.KEYCODE_ENTER);
sendKeyCode(Solo.ENTER);
break;
case MENU:
sendKeyCode(KeyEvent.KEYCODE_MENU);
sendKeyCode(Solo.MENU);
break;
case BACK:
sendKeyCode(KeyEvent.KEYCODE_BACK);
case DELETE:
sendKeyCode(Solo.DELETE);
break;
default:
mAsserter.ok(false, "sendSpecialKey", "Unknown SpecialKey " + button);
@ -367,7 +367,7 @@ public class FennecNativeActions implements Actions {
if (keyCode <= 0 || keyCode > KeyEvent.getMaxKeyCode()) {
mAsserter.ok(false, "sendKeyCode", "Unknown keyCode " + keyCode);
}
mInstr.sendCharacterSync(keyCode);
mSolo.sendKey(keyCode);
}
@Override