Bug 831144 - Change tests to use Shift+Accel+Z for redo; r=masayuki

This commit is contained in:
Jim Chen 2013-03-05 11:08:42 +00:00
parent 09b1d56782
commit d0739cd1ab
2 changed files with 2 additions and 10 deletions

View File

@ -139,11 +139,7 @@ function runTests()
ok(inputEvent.isTrusted, aDescription + "input event by Undo wasn't trusted event");
inputEvent = null;
if (kIsMac) {
synthesizeKey("z", { accelKey: true, shiftKey: true }, aWindow);
} else {
synthesizeKey("y", { accelKey: true }, aWindow);
}
synthesizeKey("z", { accelKey: true, shiftKey: true }, aWindow);
ok(inputEvent, aDescription + "input event wasn't fired by Redo");
ok(inputEvent.isTrusted, aDescription + "input event by Redo wasn't trusted event");

View File

@ -109,11 +109,7 @@ function runTests()
ok(inputEvent.isTrusted, aDescription + "input event by Undo wasn't trusted event");
inputEvent = null;
if (kIsMac) {
synthesizeKey("z", { accelKey: true, shiftKey: true });
} else {
synthesizeKey("y", { accelKey: true });
}
synthesizeKey("z", { accelKey: true, shiftKey: true });
is(aElement.value, "", aDescription + "Accel+Y key didn't redo the value");
ok(inputEvent, aDescription + "input event wasn't fired by Redo");
ok(inputEvent.isTrusted, aDescription + "input event by Redo wasn't trusted event");