mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-06 06:22:33 +00:00
Bug 916143 - Try to fix test_movement_by_words.html on Win8 PGO with a waitForFocus
This commit is contained in:
parent
28dc772b79
commit
68fe8a4e5b
@ -18,7 +18,7 @@
|
||||
|
||||
SimpleTest.waitForExplicitFinish();
|
||||
|
||||
setTimeout(focusing, 0);
|
||||
SimpleTest.waitForFocus(function(){setTimeout(focusing, 0)});
|
||||
|
||||
function focusing() {
|
||||
document.getElementById("editor").focus();
|
||||
@ -33,6 +33,7 @@ var sel = window.getSelection();
|
||||
var editor = document.getElementById("editor");
|
||||
|
||||
function setPrefs(eat_space, stop_at_punctuation, callback) {
|
||||
eatSpace = eat_space;
|
||||
SpecialPowers.pushPrefEnv({"set": [["layout.word_select.eat_space_to_next_word", eat_space], ["layout.word_select.stop_at_punctuation", stop_at_punctuation]]}, callback);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user