From 68fe8a4e5bc4937d2b135e46fe97c283197b61d3 Mon Sep 17 00:00:00 2001 From: Mats Palmgren Date: Sun, 17 Nov 2013 15:33:48 -0800 Subject: [PATCH] Bug 916143 - Try to fix test_movement_by_words.html on Win8 PGO with a waitForFocus --- layout/generic/test/test_movement_by_words.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/layout/generic/test/test_movement_by_words.html b/layout/generic/test/test_movement_by_words.html index e272bd347e2f..b71820d8fa03 100644 --- a/layout/generic/test/test_movement_by_words.html +++ b/layout/generic/test/test_movement_by_words.html @@ -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); }