Bug 1260055 - Skip test_bug597331.html and test_bug600570.html on Windows versions other than XP. r=ehsan
authorRyan VanderMeulen <ryanvm@gmail.com>
Tue, 29 Mar 2016 10:27:49 -0400
changeset 290937 6835c3b9989a4c74ff3ef31ce4f7fb7cf730841a
parent 290936 11c3335d77fb751128c456daa204385d69678484
child 290938 80c450b87a71814459f51ee337f15f5321216b83
push id19656
push usergwagner@mozilla.com
push dateMon, 04 Apr 2016 13:43:23 +0000
treeherderb2g-inbound@e99061fde28a [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersehsan
bugs1260055, 597331, 600570
milestone48.0a1
Bug 1260055 - Skip test_bug597331.html and test_bug600570.html on Windows versions other than XP. r=ehsan
editor/libeditor/tests/mochitest.ini
editor/libeditor/tests/test_bug597331.html
editor/libeditor/tests/test_bug600570.html
--- a/editor/libeditor/tests/mochitest.ini
+++ b/editor/libeditor/tests/mochitest.ini
@@ -74,23 +74,23 @@ skip-if = toolkit == 'android'
 [test_bug587461.html]
 [test_bug590554.html]
 [test_bug592592.html]
 [test_bug596001.html]
 [test_bug596333.html]
 skip-if = toolkit == 'android'
 [test_bug596506.html]
 [test_bug597331.html]
-skip-if = buildapp == 'mulet' || toolkit == 'android' || asan # Bug 1211213
+skip-if = buildapp == 'mulet' || toolkit == 'android' || asan || (os == "win" && os_version != "5.1") # Bug 718316, Bug 1211213
 [test_bug597784.html]
 [test_bug599322.html]
 skip-if = toolkit == 'android'
 [test_bug599983.html]
 [test_bug600570.html]
-skip-if = toolkit == 'android'
+skip-if = toolkit == 'android' || (os == "win" && os_version != "5.1") # Bug 718316
 [test_bug602130.html]
 [test_bug603556.html]
 [test_bug604532.html]
 skip-if = toolkit == 'android'
 [test_bug607584.html]
 [test_bug611182.html]
 skip-if = toolkit == 'android'
 [test_bug612128.html]
--- a/editor/libeditor/tests/test_bug597331.html
+++ b/editor/libeditor/tests/test_bug597331.html
@@ -19,20 +19,16 @@ line2
 line3
 </textarea>
 </div>
 <pre id="test">
 <script type="application/javascript">
 
 /** Test for Bug 597331 **/
 
-// Bug 718316: This test fails on Windows 7 and 8
-if (navigator.userAgent.indexOf("Windows NT 6.1") == -1 &&
-    navigator.userAgent.indexOf("Windows NT 6.2") == -1) {
-
 SimpleTest.waitForExplicitFinish();
 addLoadEvent(function() {
   SimpleTest.executeSoon(function() {
     var t = document.querySelector("textarea");
     t.focus();
     t.selectionStart = 4;
     t.selectionEnd = 4;
     SimpleTest.executeSoon(function() {
@@ -65,17 +61,12 @@ addLoadEvent(function() {
           SimpleTest.finish();
         });
       }, false);
       synthesizeKey("VK_LEFT", {});
     });
   });
 });
 
-}
-else {
-  ok(true, "Somebody thought it was a great idea to make me type this.");
-}
-
 </script>
 </pre>
 </body>
 </html>
--- a/editor/libeditor/tests/test_bug600570.html
+++ b/editor/libeditor/tests/test_bug600570.html
@@ -18,20 +18,16 @@ https://bugzilla.mozilla.org/show_bug.cg
 aaa
 [bbb]</textarea>
 </div>
 <pre id="test">
 <script type="application/javascript">
 
 /** Test for Bug 600570 **/
 
-// Bug 718316: This test fails on Windows 7 and 8
-if (navigator.userAgent.indexOf("Windows NT 6.1") == -1 &&
-    navigator.userAgent.indexOf("Windows NT 6.2") == -1) {
-
 SimpleTest.waitForExplicitFinish();
 SimpleTest.waitForFocus(function() {
   var t = document.querySelector("textarea");
   t.value = "[aaa\nbbb]";
   t.focus();
   synthesizeKey("A", {accelKey: true});
 
   SimpleTest.executeSoon(function() {
@@ -73,17 +69,12 @@ SimpleTest.waitForFocus(function() {
       },
       function() {
         SimpleTest.finish();
       }
     );
   });
 });
 
-}
-else {
-  ok(true, "Somebody thought it was a great idea to make me type this.");
-}
-
 </script>
 </pre>
 </body>
 </html>