Bug 721495 - Passwordmgr tests: Use EventUtils sendChar() and sendKey(), instead of calling synthesizeKey() directly, r=zpao

This commit is contained in:
Karun Dambiec 2012-01-26 14:13:00 -08:00
parent e73b511e09
commit d4cbdb1337
2 changed files with 2 additions and 2 deletions

View File

@ -114,7 +114,7 @@ function test() {
else if (aTopic == "domwindowopened") {
let win = aSubject.QueryInterface(Ci.nsIDOMEventTarget);
SimpleTest.waitForFocus(function() {
EventUtils.synthesizeKey("VK_RETURN", {}, win)
EventUtils.sendKey("RETURN", win);
}, win);
}
});

View File

@ -124,7 +124,7 @@ function test() {
else if (aTopic == "domwindowopened") {
let win = aSubject.QueryInterface(Ci.nsIDOMEventTarget);
SimpleTest.waitForFocus(function() {
EventUtils.synthesizeKey("VK_RETURN", {}, win)
EventUtils.sendKey("RETURN", win);
}, win);
}
});