mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 721495 - Passwordmgr tests: Use EventUtils sendChar() and sendKey(), instead of calling synthesizeKey() directly, r=zpao
This commit is contained in:
parent
235cd94125
commit
1bf9c15cdd
@ -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);
|
||||
}
|
||||
});
|
||||
|
@ -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);
|
||||
}
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user