Bug 1440164 - Call SimpleTest.finish() in runSubtestsSeriallyInFreshWindows() even if running subtests failed. r=kats draft
authorBotond Ballo <botond@mozilla.com>
Fri, 23 Feb 2018 21:53:31 -0500
changeset 759344 b528b83f431c89ff5b21fdd725b2c371edd9b29a
parent 759337 3e3b11bb535d6943f2ebcb4a4721b31936796b6a
child 759345 5c088cf4094e1d2537bc33664d6983654508c28c
push id100342
push userbballo@mozilla.com
push dateSat, 24 Feb 2018 04:21:57 +0000
reviewerskats
bugs1440164
milestone60.0a1
Bug 1440164 - Call SimpleTest.finish() in runSubtestsSeriallyInFreshWindows() even if running subtests failed. r=kats Not calling SimpleTest.finish() causes the test to hang, which isn't helpful. MozReview-Commit-ID: 2RBpjnG5B9l
dom/events/test/pointerevents/test_touch_action.html
gfx/layers/apz/test/mochitest/test_group_hittest.html
gfx/layers/apz/test/mochitest/test_group_mouseevents.html
gfx/layers/apz/test/mochitest/test_group_overrides.html
gfx/layers/apz/test/mochitest/test_group_pointerevents.html
gfx/layers/apz/test/mochitest/test_group_touchevents.html
gfx/layers/apz/test/mochitest/test_group_wheelevents.html
gfx/layers/apz/test/mochitest/test_group_zoom.html
--- a/dom/events/test/pointerevents/test_touch_action.html
+++ b/dom/events/test/pointerevents/test_touch_action.html
@@ -87,17 +87,17 @@ for (var name of testnames) {
     'onload': apzScriptInjector(name),
   });
 }
 
 if (isApzEnabled()) {
   SimpleTest.waitForExplicitFinish();
   window.onload = function() {
     runSubtestsSeriallyInFreshWindows(subtests)
-    .then(SimpleTest.finish);
+    .then(SimpleTest.finish, SimpleTest.finish);
   };
 }
 
   </script>
  </head>
  <body>
  </body>
 </html>
--- a/gfx/layers/apz/test/mochitest/test_group_hittest.html
+++ b/gfx/layers/apz/test/mochitest/test_group_hittest.html
@@ -30,17 +30,17 @@ var subtests = [
   {'file': 'helper_hittest_basic.html', 'prefs': prefs},
   {'file': 'helper_hittest_subframe_float.html', 'prefs': prefs},
 ];
 
 if (isApzEnabled()) {
   SimpleTest.waitForExplicitFinish();
   window.onload = function() {
     runSubtestsSeriallyInFreshWindows(subtests)
-    .then(SimpleTest.finish);
+    .then(SimpleTest.finish, SimpleTest.finish);
   };
 }
 
   </script>
 </head>
 <body>
 </body>
 </html>
--- a/gfx/layers/apz/test/mochitest/test_group_mouseevents.html
+++ b/gfx/layers/apz/test/mochitest/test_group_mouseevents.html
@@ -21,17 +21,17 @@ var subtests = [
   // Test for dragging the scrollbar with a fixed-pos element overlaying it
   {'file': 'helper_bug1346632.html'}
 ];
 
 if (isApzEnabled()) {
   SimpleTest.waitForExplicitFinish();
   window.onload = function() {
     runSubtestsSeriallyInFreshWindows(subtests)
-    .then(SimpleTest.finish);
+    .then(SimpleTest.finish, SimpleTest.finish);
   };
 }
 
   </script>
 </head>
 <body>
 </body>
 </html>
--- a/gfx/layers/apz/test/mochitest/test_group_overrides.html
+++ b/gfx/layers/apz/test/mochitest/test_group_overrides.html
@@ -21,17 +21,17 @@ var subtests = [
   {'file': 'helper_override_root.html', 'prefs': prefs},
   {'file': 'helper_override_subdoc.html', 'prefs': prefs},
 ];
 
 if (isApzEnabled()) {
   SimpleTest.waitForExplicitFinish();
   window.onload = function() {
     runSubtestsSeriallyInFreshWindows(subtests)
-    .then(SimpleTest.finish);
+    .then(SimpleTest.finish, SimpleTest.finish);
   };
 }
 
   </script>
 </head>
 <body>
 </body>
 </html>
--- a/gfx/layers/apz/test/mochitest/test_group_pointerevents.html
+++ b/gfx/layers/apz/test/mochitest/test_group_pointerevents.html
@@ -15,17 +15,17 @@ https://bugzilla.mozilla.org/show_bug.cg
     {'file': 'helper_bug1285070.html', 'prefs': [["dom.w3c_pointer_events.enabled", true]]},
     {'file': 'helper_bug1299195.html', 'prefs': [["dom.w3c_pointer_events.enabled", true]]}
   ];
 
   if (isApzEnabled()) {
     SimpleTest.waitForExplicitFinish();
     window.onload = function() {
       runSubtestsSeriallyInFreshWindows(subtests)
-      .then(SimpleTest.finish);
+      .then(SimpleTest.finish, SimpleTest.finish);
     };
   }
 
   </script>
 </head>
 <body>
 </body>
 </html>
--- a/gfx/layers/apz/test/mochitest/test_group_touchevents.html
+++ b/gfx/layers/apz/test/mochitest/test_group_touchevents.html
@@ -89,17 +89,17 @@ if (isApzEnabled()) {
   if (getPlatform() == "android") {
     // This has a lot of subtests, and Android emulators are slow.
     SimpleTest.requestLongerTimeout(2);
   }
 
   SimpleTest.waitForExplicitFinish();
   window.onload = function() {
     runSubtestsSeriallyInFreshWindows(subtests)
-    .then(SimpleTest.finish);
+    .then(SimpleTest.finish, SimpleTest.finish);
   };
 }
 
   </script>
 </head>
 <body>
 </body>
 </html>
--- a/gfx/layers/apz/test/mochitest/test_group_wheelevents.html
+++ b/gfx/layers/apz/test/mochitest/test_group_wheelevents.html
@@ -34,17 +34,17 @@ var subtests = [
   {'file': 'helper_scroll_over_scrollbar.html', 'prefs': scrollbar_prefs},
   {'file': 'helper_scroll_tables_perspective.html', 'prefs': prefs},
 ];
 
 if (isApzEnabled()) {
   SimpleTest.waitForExplicitFinish();
   window.onload = function() {
     runSubtestsSeriallyInFreshWindows(subtests)
-    .then(SimpleTest.finish);
+    .then(SimpleTest.finish, SimpleTest.finish);
   };
 }
 
   </script>
 </head>
 <body>
 </body>
 </html>
--- a/gfx/layers/apz/test/mochitest/test_group_zoom.html
+++ b/gfx/layers/apz/test/mochitest/test_group_zoom.html
@@ -29,17 +29,17 @@ var subtests = [
   {'file': 'helper_bug1280013.html', 'prefs': prefs},
   {'file': 'helper_basic_zoom.html', 'prefs': prefs},
 ];
 
 if (isApzEnabled()) {
   SimpleTest.waitForExplicitFinish();
   window.onload = function() {
     runSubtestsSeriallyInFreshWindows(subtests)
-    .then(SimpleTest.finish);
+    .then(SimpleTest.finish, SimpleTest.finish);
   };
 }
 
   </script>
 </head>
 <body>
 </body>
 </html>