зеркало из https://github.com/mozilla/pjs.git
Bug 721495 - Passwordmgr tests: Use EventUtils sendChar() and sendKey(), instead of calling synthesizeKey() directly, r=zpao
This commit is contained in:
Родитель
e63ea7ceac
Коммит
c817023f11
|
@ -114,7 +114,7 @@ function test() {
|
||||||
else if (aTopic == "domwindowopened") {
|
else if (aTopic == "domwindowopened") {
|
||||||
let win = aSubject.QueryInterface(Ci.nsIDOMEventTarget);
|
let win = aSubject.QueryInterface(Ci.nsIDOMEventTarget);
|
||||||
SimpleTest.waitForFocus(function() {
|
SimpleTest.waitForFocus(function() {
|
||||||
EventUtils.synthesizeKey("VK_RETURN", {}, win)
|
EventUtils.sendKey("RETURN", win);
|
||||||
}, win);
|
}, win);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
@ -124,7 +124,7 @@ function test() {
|
||||||
else if (aTopic == "domwindowopened") {
|
else if (aTopic == "domwindowopened") {
|
||||||
let win = aSubject.QueryInterface(Ci.nsIDOMEventTarget);
|
let win = aSubject.QueryInterface(Ci.nsIDOMEventTarget);
|
||||||
SimpleTest.waitForFocus(function() {
|
SimpleTest.waitForFocus(function() {
|
||||||
EventUtils.synthesizeKey("VK_RETURN", {}, win)
|
EventUtils.sendKey("RETURN", win);
|
||||||
}, win);
|
}, win);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Загрузка…
Ссылка в новой задаче