Bug 675201 - Attempt to wait for focus in the test before issuing keyboard events; r=ehsan
authorMounir Lamouri <mounir.lamouri@gmail.com>
Sun, 11 Sep 2011 11:21:09 -0700
changeset 76888 01a9f0ee22348ecf195f50d74a6edfcbd18b1c67
parent 76887 e85c4dc116c5875f4ad6f62cf0a111dd5b656501
child 76889 b3eb728a2d54120c77bec8b3bdba9579aaa916f1
push id3
push userfelipc@gmail.com
push dateFri, 30 Sep 2011 20:09:13 +0000
reviewersehsan
bugs675201
milestone9.0a1
Bug 675201 - Attempt to wait for focus in the test before issuing keyboard events; r=ehsan
layout/generic/test/test_bug632379.xul
--- a/layout/generic/test/test_bug632379.xul
+++ b/layout/generic/test/test_bug632379.xul
@@ -193,14 +193,13 @@ function doTest() {
 
 function openSubmenu()
 {
     ok(true, "openSubMenu() called");
     // open a submenu in the middle
     synthesizeKey("5", {});
 }
 
-SimpleTest.waitForExplicitFinish();
-addLoadEvent(doTest);
+SimpleTest.waitForFocus(doTest);
 
 ]]></script>
 </window>