Attempt to fix bug 622534 by waiting for focus on the test window before running the test
authorEhsan Akhgari <ehsan@mozilla.com>
Tue, 05 Mar 2013 09:41:27 -0500
changeset 123822 2842ffe95e766bbf095cff3b95051a6faa313f49
parent 123821 99d71c24a5df4bfcc9f0bfcd187d7e57f5e4f22e
child 123823 68b019bea6d4d67b28bac953f326f3e763610274
push id1401
push userpastithas@mozilla.com
push dateThu, 07 Mar 2013 07:26:45 +0000
treeherderfx-team@ee4879719f78 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs622534
milestone22.0a1
Attempt to fix bug 622534 by waiting for focus on the test window before running the test Also, remove an unneeded enablePrivilege API call!
editor/libeditor/html/tests/file_select_all_without_body.html
--- a/editor/libeditor/html/tests/file_select_all_without_body.html
+++ b/editor/libeditor/html/tests/file_select_all_without_body.html
@@ -9,18 +9,16 @@ function is(aLeft, aRight, aMessage)
 
 function unload()
 {
   window.opener.SimpleTest.finish();
 }
 
 function boom()
 {
-  netscape.security.PrivilegeManager.enablePrivilege('UniversalXPConnect');
-
   var root = document.documentElement;
   while(root.firstChild) {
     root.removeChild(root.firstChild);
   }
   root.appendChild(document.createTextNode("Mozilla"));
   root.focus();
   cespan = document.createElementNS("http://www.w3.org/1999/xhtml", "span");
   cespan.setAttributeNS(null, "contenteditable", "true");
@@ -30,12 +28,14 @@ function boom()
   } catch(e) { }
 
   is(window.getSelection().toString(), "Mozilla",
      "The nodes are not selected");
 
   window.close();
 }
 
+window.opener.SimpleTest.waitForFocus(boom, window);
+
 </script></head>
 
-<body onload="boom();" onunload="unload();"></body>
+<body onunload="unload();"></body>
 </html>