Fixing test bustage... Disable tests on Linux and Windows until I figure out how to get them to do word movement via synthesized events.
authorroc+@cs.cmu.edu
Wed, 10 Oct 2007 16:19:11 -0700
changeset 6805 f3c62b18a7e969833cbc2debc7aa26b7f1ac2f50
parent 6804 81046e3390a0add71c14c7da17dac72d4f71175e
child 6806 eb1701373e3ab7d92717156656094002b0495aa4
push id1
push userbsmedberg@mozilla.com
push dateThu, 20 Mar 2008 16:49:24 +0000
treeherdermozilla-central@61007906a1f8 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
milestone1.9a9pre
Fixing test bustage... Disable tests on Linux and Windows until I figure out how to get them to do word movement via synthesized events.
layout/generic/test/test_word_movement.html
--- a/layout/generic/test/test_word_movement.html
+++ b/layout/generic/test/test_word_movement.html
@@ -37,16 +37,22 @@ function restoreEatSpace() {
   try {
     getPrefs().clearUserPref("eat_space_to_next_word");
   } catch(ex) {}
 }
 
 function test() {
   netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
 
+  // Disable tests on Windows and Linux for now
+  if (navigator.platform.indexOf("Mac") < 0) {
+    SimpleTest.finish();
+    return;
+  }
+
   var wordModifiers =
       (navigator.platform.indexOf("Mac") >= 0) ? {altKey:true} : {ctrlKey:true};
   var sel = window.getSelection();
   var editor = document.getElementById("editor");
 
   function testRight(node, offset) {
     synthesizeKey("VK_RIGHT", wordModifiers);
     is(sel.anchorNode, node, "Right movement broken in " + editor.innerHTML);