Bug 1273654 - Remove redundant function wrapper. r?botond draft
authorKartikaya Gupta <kgupta@mozilla.com>
Wed, 25 May 2016 10:00:07 -0400
changeset 370876 8d050dbb52d7564f039fc6acc8b2bbc51b8a1d47
parent 370875 20dcddf7a4182b7d3ec9941c6acbfa4305abb584
child 370877 9fc02af795018131079ad0258061dac02c0a2cb3
push id19168
push userkgupta@mozilla.com
push dateWed, 25 May 2016 14:24:41 +0000
reviewersbotond
bugs1273654
milestone49.0a1
Bug 1273654 - Remove redundant function wrapper. r?botond MozReview-Commit-ID: 4wcFYQTyrrD
gfx/layers/apz/test/mochitest/test_group_mouseevents.html
gfx/layers/apz/test/mochitest/test_group_touchevents.html
gfx/layers/apz/test/mochitest/test_group_wheelevents.html
--- a/gfx/layers/apz/test/mochitest/test_group_mouseevents.html
+++ b/gfx/layers/apz/test/mochitest/test_group_mouseevents.html
@@ -18,16 +18,16 @@ var subtests = [
 SimpleTest.waitForExplicitFinish();
 window.onload = function() {
   if (!SpecialPowers.getDOMWindowUtils(window).asyncPanZoomEnabled) {
     ok(true, "APZ is not enabled, this test is not relevant, sorry!\n");
     SimpleTest.finish();
     return;
   }
   runSubtestsSeriallyInFreshWindows(subtests)
-    .then(function() { SimpleTest.finish() });
+    .then(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
@@ -60,16 +60,16 @@ var subtests = [
 SimpleTest.waitForExplicitFinish();
 window.onload = function() {
   if (!SpecialPowers.getDOMWindowUtils(window).asyncPanZoomEnabled) {
     ok(true, "APZ is not enabled, this test is not relevant, sorry!\n");
     SimpleTest.finish();
     return;
   }
   runSubtestsSeriallyInFreshWindows(subtests)
-    .then(function() { SimpleTest.finish() });
+    .then(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
@@ -28,16 +28,16 @@ var subtests = [
 SimpleTest.waitForExplicitFinish();
 window.onload = function() {
   if (!SpecialPowers.getDOMWindowUtils(window).asyncPanZoomEnabled) {
     ok(true, "APZ is not enabled, this test is not relevant, sorry!\n");
     SimpleTest.finish();
     return;
   }
   runSubtestsSeriallyInFreshWindows(subtests)
-    .then(function() { SimpleTest.finish() });
+    .then(SimpleTest.finish);
 };
 
   </script>
 </head>
 <body>
 </body>
 </html>