Bug 1273654 - Remove redundant function wrapper. r?botond
MozReview-Commit-ID: 4wcFYQTyrrD
--- 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>