Remove useless t.done() in worker promise tests (#45548)

Promise tests complete when their promise settles. Calling t.done() is
not required.

Bug: 330885075
Change-Id: I496b2222a47983536053218075b03b829b191e3c
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5392061
Commit-Queue: Jean-Philippe Gravel <jpgravel@chromium.org>
Reviewed-by: Andres Ricardo Perez <andresrperez@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1282154}

Co-authored-by: Jean-Philippe Gravel <jpgravel@chromium.org>
diff --git a/html/canvas/offscreen/compositing/2d.composite.globalAlpha.image.worker.js b/html/canvas/offscreen/compositing/2d.composite.globalAlpha.image.worker.js
index 2095341..1a181a1 100644
--- a/html/canvas/offscreen/compositing/2d.composite.globalAlpha.image.worker.js
+++ b/html/canvas/offscreen/compositing/2d.composite.globalAlpha.image.worker.js
@@ -7,7 +7,6 @@
 importScripts("/html/canvas/resources/canvas-tests.js");
 
 promise_test(async t => {
-
   var canvas = new OffscreenCanvas(100, 50);
   var ctx = canvas.getContext('2d');
 
@@ -21,6 +20,5 @@
 
   ctx.drawImage(bitmap, 0, 0);
   _assertPixelApprox(canvas, 50,25, 2,253,0,255, 2);
-  t.done();
 }, "");
 done();
diff --git a/html/canvas/offscreen/compositing/2d.composite.globalAlpha.imagepattern.worker.js b/html/canvas/offscreen/compositing/2d.composite.globalAlpha.imagepattern.worker.js
index c6ab163..cb8f141 100644
--- a/html/canvas/offscreen/compositing/2d.composite.globalAlpha.imagepattern.worker.js
+++ b/html/canvas/offscreen/compositing/2d.composite.globalAlpha.imagepattern.worker.js
@@ -7,7 +7,6 @@
 importScripts("/html/canvas/resources/canvas-tests.js");
 
 promise_test(async t => {
-
   var canvas = new OffscreenCanvas(100, 50);
   var ctx = canvas.getContext('2d');
 
@@ -22,6 +21,5 @@
   ctx.globalAlpha = 0.01;
   ctx.fillRect(0, 0, 100, 50);
   _assertPixelApprox(canvas, 50,25, 2,253,0,255, 2);
-  t.done();
 }, "");
 done();
diff --git a/html/canvas/offscreen/drawing-images-to-the-canvas/2d.drawImage.3arg.worker.js b/html/canvas/offscreen/drawing-images-to-the-canvas/2d.drawImage.3arg.worker.js
index b2f860b..e91416b 100644
--- a/html/canvas/offscreen/drawing-images-to-the-canvas/2d.drawImage.3arg.worker.js
+++ b/html/canvas/offscreen/drawing-images-to-the-canvas/2d.drawImage.3arg.worker.js
@@ -7,7 +7,6 @@
 importScripts("/html/canvas/resources/canvas-tests.js");
 
 promise_test(async t => {
-
   var canvas = new OffscreenCanvas(100, 50);
   var ctx = canvas.getContext('2d');
 
@@ -28,6 +27,5 @@
   _assertPixelApprox(canvas, 99,0, 0,255,0,255, 2);
   _assertPixelApprox(canvas, 0,49, 0,255,0,255, 2);
   _assertPixelApprox(canvas, 99,49, 0,255,0,255, 2);
-  t.done();
 }, "");
 done();
diff --git a/html/canvas/offscreen/drawing-images-to-the-canvas/2d.drawImage.5arg.worker.js b/html/canvas/offscreen/drawing-images-to-the-canvas/2d.drawImage.5arg.worker.js
index f725acf..a852f59 100644
--- a/html/canvas/offscreen/drawing-images-to-the-canvas/2d.drawImage.5arg.worker.js
+++ b/html/canvas/offscreen/drawing-images-to-the-canvas/2d.drawImage.5arg.worker.js
@@ -7,7 +7,6 @@
 importScripts("/html/canvas/resources/canvas-tests.js");
 
 promise_test(async t => {
-
   var canvas = new OffscreenCanvas(100, 50);
   var ctx = canvas.getContext('2d');
 
@@ -29,6 +28,5 @@
   _assertPixelApprox(canvas, 99,0, 0,255,0,255, 2);
   _assertPixelApprox(canvas, 0,49, 0,255,0,255, 2);
   _assertPixelApprox(canvas, 99,49, 0,255,0,255, 2);
-  t.done();
 }, "");
 done();
diff --git a/html/canvas/offscreen/drawing-images-to-the-canvas/2d.drawImage.9arg.basic.worker.js b/html/canvas/offscreen/drawing-images-to-the-canvas/2d.drawImage.9arg.basic.worker.js
index b2d6f7d..ca5b6c2 100644
--- a/html/canvas/offscreen/drawing-images-to-the-canvas/2d.drawImage.9arg.basic.worker.js
+++ b/html/canvas/offscreen/drawing-images-to-the-canvas/2d.drawImage.9arg.basic.worker.js
@@ -7,7 +7,6 @@
 importScripts("/html/canvas/resources/canvas-tests.js");
 
 promise_test(async t => {
-
   var canvas = new OffscreenCanvas(100, 50);
   var ctx = canvas.getContext('2d');
 
@@ -22,6 +21,5 @@
   _assertPixelApprox(canvas, 99,0, 0,255,0,255, 2);
   _assertPixelApprox(canvas, 0,49, 0,255,0,255, 2);
   _assertPixelApprox(canvas, 99,49, 0,255,0,255, 2);
-  t.done();
 }, "");
 done();
diff --git a/html/canvas/offscreen/drawing-images-to-the-canvas/2d.drawImage.9arg.destpos.worker.js b/html/canvas/offscreen/drawing-images-to-the-canvas/2d.drawImage.9arg.destpos.worker.js
index 380d526..aff6c21 100644
--- a/html/canvas/offscreen/drawing-images-to-the-canvas/2d.drawImage.9arg.destpos.worker.js
+++ b/html/canvas/offscreen/drawing-images-to-the-canvas/2d.drawImage.9arg.destpos.worker.js
@@ -7,7 +7,6 @@
 importScripts("/html/canvas/resources/canvas-tests.js");
 
 promise_test(async t => {
-
   var canvas = new OffscreenCanvas(100, 50);
   var ctx = canvas.getContext('2d');
 
@@ -28,6 +27,5 @@
   _assertPixelApprox(canvas, 99,0, 0,255,0,255, 2);
   _assertPixelApprox(canvas, 0,49, 0,255,0,255, 2);
   _assertPixelApprox(canvas, 99,49, 0,255,0,255, 2);
-  t.done();
 }, "");
 done();
diff --git a/html/canvas/offscreen/drawing-images-to-the-canvas/2d.drawImage.9arg.destsize.worker.js b/html/canvas/offscreen/drawing-images-to-the-canvas/2d.drawImage.9arg.destsize.worker.js
index 76e3e8b..a3c1453 100644
--- a/html/canvas/offscreen/drawing-images-to-the-canvas/2d.drawImage.9arg.destsize.worker.js
+++ b/html/canvas/offscreen/drawing-images-to-the-canvas/2d.drawImage.9arg.destsize.worker.js
@@ -7,7 +7,6 @@
 importScripts("/html/canvas/resources/canvas-tests.js");
 
 promise_test(async t => {
-
   var canvas = new OffscreenCanvas(100, 50);
   var ctx = canvas.getContext('2d');
 
@@ -30,6 +29,5 @@
   _assertPixelApprox(canvas, 99,0, 0,255,0,255, 2);
   _assertPixelApprox(canvas, 0,49, 0,255,0,255, 2);
   _assertPixelApprox(canvas, 99,49, 0,255,0,255, 2);
-  t.done();
 }, "");
 done();
diff --git a/html/canvas/offscreen/drawing-images-to-the-canvas/2d.drawImage.9arg.sourcepos.worker.js b/html/canvas/offscreen/drawing-images-to-the-canvas/2d.drawImage.9arg.sourcepos.worker.js
index d352543..0c060f7 100644
--- a/html/canvas/offscreen/drawing-images-to-the-canvas/2d.drawImage.9arg.sourcepos.worker.js
+++ b/html/canvas/offscreen/drawing-images-to-the-canvas/2d.drawImage.9arg.sourcepos.worker.js
@@ -7,7 +7,6 @@
 importScripts("/html/canvas/resources/canvas-tests.js");
 
 promise_test(async t => {
-
   var canvas = new OffscreenCanvas(100, 50);
   var ctx = canvas.getContext('2d');
 
@@ -21,6 +20,5 @@
   _assertPixelApprox(canvas, 99,0, 0,255,0,255, 2);
   _assertPixelApprox(canvas, 0,49, 0,255,0,255, 2);
   _assertPixelApprox(canvas, 99,49, 0,255,0,255, 2);
-  t.done();
 }, "");
 done();
diff --git a/html/canvas/offscreen/drawing-images-to-the-canvas/2d.drawImage.9arg.sourcesize.worker.js b/html/canvas/offscreen/drawing-images-to-the-canvas/2d.drawImage.9arg.sourcesize.worker.js
index aa15efb..7d7f064 100644
--- a/html/canvas/offscreen/drawing-images-to-the-canvas/2d.drawImage.9arg.sourcesize.worker.js
+++ b/html/canvas/offscreen/drawing-images-to-the-canvas/2d.drawImage.9arg.sourcesize.worker.js
@@ -7,7 +7,6 @@
 importScripts("/html/canvas/resources/canvas-tests.js");
 
 promise_test(async t => {
-
   var canvas = new OffscreenCanvas(100, 50);
   var ctx = canvas.getContext('2d');
 
@@ -28,6 +27,5 @@
   _assertPixelApprox(canvas, 80,20, 0,255,0,255, 2);
   _assertPixelApprox(canvas, 20,30, 0,255,0,255, 2);
   _assertPixelApprox(canvas, 80,30, 0,255,0,255, 2);
-  t.done();
 }, "");
 done();
diff --git a/html/canvas/offscreen/drawing-images-to-the-canvas/2d.drawImage.alpha.worker.js b/html/canvas/offscreen/drawing-images-to-the-canvas/2d.drawImage.alpha.worker.js
index 958a243..6854a06 100644
--- a/html/canvas/offscreen/drawing-images-to-the-canvas/2d.drawImage.alpha.worker.js
+++ b/html/canvas/offscreen/drawing-images-to-the-canvas/2d.drawImage.alpha.worker.js
@@ -7,7 +7,6 @@
 importScripts("/html/canvas/resources/canvas-tests.js");
 
 promise_test(async t => {
-
   var canvas = new OffscreenCanvas(100, 50);
   var ctx = canvas.getContext('2d');
 
@@ -20,6 +19,5 @@
 
   ctx.drawImage(bitmap, 0, 0);
   _assertPixelApprox(canvas, 50,25, 0,255,0,255, 2);
-  t.done();
 }, "");
 done();
diff --git a/html/canvas/offscreen/drawing-images-to-the-canvas/2d.drawImage.broken.worker.js b/html/canvas/offscreen/drawing-images-to-the-canvas/2d.drawImage.broken.worker.js
index dc695b5..1b2b0f8 100644
--- a/html/canvas/offscreen/drawing-images-to-the-canvas/2d.drawImage.broken.worker.js
+++ b/html/canvas/offscreen/drawing-images-to-the-canvas/2d.drawImage.broken.worker.js
@@ -7,7 +7,6 @@
 importScripts("/html/canvas/resources/canvas-tests.js");
 
 promise_test(async t => {
-
   var canvas = new OffscreenCanvas(100, 50);
   var ctx = canvas.getContext('2d');
 
@@ -15,6 +14,5 @@
   const blob = await response.blob();
 
   await promise_rejects_dom(t, 'InvalidStateError', createImageBitmap(blob), 'The source image could not be decoded.');
-  t.done();
 }, "");
 done();
diff --git a/html/canvas/offscreen/drawing-images-to-the-canvas/2d.drawImage.clip.worker.js b/html/canvas/offscreen/drawing-images-to-the-canvas/2d.drawImage.clip.worker.js
index fea2a7b..ce4231c 100644
--- a/html/canvas/offscreen/drawing-images-to-the-canvas/2d.drawImage.clip.worker.js
+++ b/html/canvas/offscreen/drawing-images-to-the-canvas/2d.drawImage.clip.worker.js
@@ -7,7 +7,6 @@
 importScripts("/html/canvas/resources/canvas-tests.js");
 
 promise_test(async t => {
-
   var canvas = new OffscreenCanvas(100, 50);
   var ctx = canvas.getContext('2d');
 
@@ -25,6 +24,5 @@
   ctx.clip();
   ctx.drawImage(bitmap, 0, 0);
   _assertPixelApprox(canvas, 50,25, 0,255,0,255, 2);
-  t.done();
 }, "");
 done();
diff --git a/html/canvas/offscreen/drawing-images-to-the-canvas/2d.drawImage.composite.worker.js b/html/canvas/offscreen/drawing-images-to-the-canvas/2d.drawImage.composite.worker.js
index 0b17673..e9d0d9c 100644
--- a/html/canvas/offscreen/drawing-images-to-the-canvas/2d.drawImage.composite.worker.js
+++ b/html/canvas/offscreen/drawing-images-to-the-canvas/2d.drawImage.composite.worker.js
@@ -7,7 +7,6 @@
 importScripts("/html/canvas/resources/canvas-tests.js");
 
 promise_test(async t => {
-
   var canvas = new OffscreenCanvas(100, 50);
   var ctx = canvas.getContext('2d');
 
@@ -20,6 +19,5 @@
 
   ctx.drawImage(bitmap, 0, 0);
   _assertPixelApprox(canvas, 50,25, 0,255,0,255, 2);
-  t.done();
 }, "");
 done();
diff --git a/html/canvas/offscreen/drawing-images-to-the-canvas/2d.drawImage.floatsource.worker.js b/html/canvas/offscreen/drawing-images-to-the-canvas/2d.drawImage.floatsource.worker.js
index 1efc17d..18ecb11 100644
--- a/html/canvas/offscreen/drawing-images-to-the-canvas/2d.drawImage.floatsource.worker.js
+++ b/html/canvas/offscreen/drawing-images-to-the-canvas/2d.drawImage.floatsource.worker.js
@@ -7,7 +7,6 @@
 importScripts("/html/canvas/resources/canvas-tests.js");
 
 promise_test(async t => {
-
   var canvas = new OffscreenCanvas(100, 50);
   var ctx = canvas.getContext('2d');
 
@@ -16,6 +15,5 @@
   const bitmap = await createImageBitmap(blob);
   ctx.drawImage(bitmap, 10.1, 10.1, 0.1, 0.1, 0, 0, 100, 50);
   _assertPixelApprox(canvas, 50,25, 0,255,0,255, 2);
-  t.done();
 }, "");
 done();
diff --git a/html/canvas/offscreen/drawing-images-to-the-canvas/2d.drawImage.negativedest.worker.js b/html/canvas/offscreen/drawing-images-to-the-canvas/2d.drawImage.negativedest.worker.js
index ce5cf5e..36c4b27 100644
--- a/html/canvas/offscreen/drawing-images-to-the-canvas/2d.drawImage.negativedest.worker.js
+++ b/html/canvas/offscreen/drawing-images-to-the-canvas/2d.drawImage.negativedest.worker.js
@@ -7,7 +7,6 @@
 importScripts("/html/canvas/resources/canvas-tests.js");
 
 promise_test(async t => {
-
   var canvas = new OffscreenCanvas(100, 50);
   var ctx = canvas.getContext('2d');
 
@@ -28,6 +27,5 @@
   _assertPixelApprox(canvas, 51,48, 0,255,0,255, 2);
   _assertPixelApprox(canvas, 25,25, 0,255,0,255, 2);
   _assertPixelApprox(canvas, 75,25, 0,255,0,255, 2);
-  t.done();
 }, "Negative destination width/height represents the correct rectangle");
 done();
diff --git a/html/canvas/offscreen/drawing-images-to-the-canvas/2d.drawImage.negativedir.worker.js b/html/canvas/offscreen/drawing-images-to-the-canvas/2d.drawImage.negativedir.worker.js
index c82b9ba..f774dee 100644
--- a/html/canvas/offscreen/drawing-images-to-the-canvas/2d.drawImage.negativedir.worker.js
+++ b/html/canvas/offscreen/drawing-images-to-the-canvas/2d.drawImage.negativedir.worker.js
@@ -7,7 +7,6 @@
 importScripts("/html/canvas/resources/canvas-tests.js");
 
 promise_test(async t => {
-
   var canvas = new OffscreenCanvas(100, 50);
   var ctx = canvas.getContext('2d');
 
@@ -28,6 +27,5 @@
   _assertPixelApprox(canvas, 51,48, 0,255,0,255, 2);
   _assertPixelApprox(canvas, 25,25, 0,255,0,255, 2);
   _assertPixelApprox(canvas, 75,25, 0,255,0,255, 2);
-  t.done();
 }, "Negative dimensions do not affect the direction of the image");
 done();
diff --git a/html/canvas/offscreen/drawing-images-to-the-canvas/2d.drawImage.negativesource.worker.js b/html/canvas/offscreen/drawing-images-to-the-canvas/2d.drawImage.negativesource.worker.js
index f92d157..804a09f 100644
--- a/html/canvas/offscreen/drawing-images-to-the-canvas/2d.drawImage.negativesource.worker.js
+++ b/html/canvas/offscreen/drawing-images-to-the-canvas/2d.drawImage.negativesource.worker.js
@@ -7,7 +7,6 @@
 importScripts("/html/canvas/resources/canvas-tests.js");
 
 promise_test(async t => {
-
   var canvas = new OffscreenCanvas(100, 50);
   var ctx = canvas.getContext('2d');
 
@@ -28,6 +27,5 @@
   _assertPixelApprox(canvas, 51,48, 0,255,0,255, 2);
   _assertPixelApprox(canvas, 25,25, 0,255,0,255, 2);
   _assertPixelApprox(canvas, 75,25, 0,255,0,255, 2);
-  t.done();
 }, "Negative source width/height represents the correct rectangle");
 done();
diff --git a/html/canvas/offscreen/drawing-images-to-the-canvas/2d.drawImage.nonfinite.worker.js b/html/canvas/offscreen/drawing-images-to-the-canvas/2d.drawImage.nonfinite.worker.js
index a56f09e..e9ca406 100644
--- a/html/canvas/offscreen/drawing-images-to-the-canvas/2d.drawImage.nonfinite.worker.js
+++ b/html/canvas/offscreen/drawing-images-to-the-canvas/2d.drawImage.nonfinite.worker.js
@@ -7,7 +7,6 @@
 importScripts("/html/canvas/resources/canvas-tests.js");
 
 promise_test(async t => {
-
   var canvas = new OffscreenCanvas(100, 50);
   var ctx = canvas.getContext('2d');
 
@@ -319,6 +318,5 @@
   ctx.drawImage(bitmap, 0, 0, 100, 50, 0, Infinity, 100, Infinity);
   ctx.drawImage(bitmap, 0, 0, 100, 50, 0, 0, Infinity, Infinity);
   _assertPixel(canvas, 50,25, 0,255,0,255);
-  t.done();
 }, "drawImage() with Infinity/NaN is ignored");
 done();
diff --git a/html/canvas/offscreen/drawing-images-to-the-canvas/2d.drawImage.nowrap.worker.js b/html/canvas/offscreen/drawing-images-to-the-canvas/2d.drawImage.nowrap.worker.js
index 47a7783..5728d42 100644
--- a/html/canvas/offscreen/drawing-images-to-the-canvas/2d.drawImage.nowrap.worker.js
+++ b/html/canvas/offscreen/drawing-images-to-the-canvas/2d.drawImage.nowrap.worker.js
@@ -7,7 +7,6 @@
 importScripts("/html/canvas/resources/canvas-tests.js");
 
 promise_test(async t => {
-
   var canvas = new OffscreenCanvas(100, 50);
   var ctx = canvas.getContext('2d');
 
@@ -21,6 +20,5 @@
   _assertPixelApprox(canvas, 45,25, 0,255,0,255, 2);
   _assertPixelApprox(canvas, 50,25, 0,255,0,255, 2);
   _assertPixelApprox(canvas, 55,25, 0,255,0,255, 2);
-  t.done();
 }, "Stretched images do not get pixels wrapping around the edges");
 done();
diff --git a/html/canvas/offscreen/drawing-images-to-the-canvas/2d.drawImage.path.worker.js b/html/canvas/offscreen/drawing-images-to-the-canvas/2d.drawImage.path.worker.js
index 3259ff0..b18d021 100644
--- a/html/canvas/offscreen/drawing-images-to-the-canvas/2d.drawImage.path.worker.js
+++ b/html/canvas/offscreen/drawing-images-to-the-canvas/2d.drawImage.path.worker.js
@@ -7,7 +7,6 @@
 importScripts("/html/canvas/resources/canvas-tests.js");
 
 promise_test(async t => {
-
   var canvas = new OffscreenCanvas(100, 50);
   var ctx = canvas.getContext('2d');
 
@@ -20,6 +19,5 @@
   ctx.drawImage(bitmap, 0, 0);
   ctx.fill();
   _assertPixelApprox(canvas, 50,25, 0,255,0,255, 2);
-  t.done();
 }, "");
 done();
diff --git a/html/canvas/offscreen/drawing-images-to-the-canvas/2d.drawImage.transform.worker.js b/html/canvas/offscreen/drawing-images-to-the-canvas/2d.drawImage.transform.worker.js
index 4a4cd07..1ba8321 100644
--- a/html/canvas/offscreen/drawing-images-to-the-canvas/2d.drawImage.transform.worker.js
+++ b/html/canvas/offscreen/drawing-images-to-the-canvas/2d.drawImage.transform.worker.js
@@ -7,7 +7,6 @@
 importScripts("/html/canvas/resources/canvas-tests.js");
 
 promise_test(async t => {
-
   var canvas = new OffscreenCanvas(100, 50);
   var ctx = canvas.getContext('2d');
 
@@ -20,6 +19,5 @@
 
   ctx.drawImage(bitmap, 0, 0);
   _assertPixelApprox(canvas, 50,25, 0,255,0,255, 2);
-  t.done();
 }, "");
 done();
diff --git a/html/canvas/offscreen/drawing-images-to-the-canvas/2d.drawImage.zerosource.worker.js b/html/canvas/offscreen/drawing-images-to-the-canvas/2d.drawImage.zerosource.worker.js
index a80bfff..61b70b0 100644
--- a/html/canvas/offscreen/drawing-images-to-the-canvas/2d.drawImage.zerosource.worker.js
+++ b/html/canvas/offscreen/drawing-images-to-the-canvas/2d.drawImage.zerosource.worker.js
@@ -7,7 +7,6 @@
 importScripts("/html/canvas/resources/canvas-tests.js");
 
 promise_test(async t => {
-
   var canvas = new OffscreenCanvas(100, 50);
   var ctx = canvas.getContext('2d');
 
@@ -20,6 +19,5 @@
   ctx.drawImage(bitmap, 10, 10, 1, 0, 0, 0, 100, 50);
   ctx.drawImage(bitmap, 10, 10, 0, 0, 0, 0, 100, 50);
   _assertPixelApprox(canvas, 50,25, 0,255,0,255, 2);
-  t.done();
 }, "drawImage with zero-sized source rectangle draws nothing without exception");
 done();
diff --git a/html/canvas/offscreen/fill-and-stroke-styles/2d.pattern.basic.image.worker.js b/html/canvas/offscreen/fill-and-stroke-styles/2d.pattern.basic.image.worker.js
index 14cfcbc..cc2dc30 100644
--- a/html/canvas/offscreen/fill-and-stroke-styles/2d.pattern.basic.image.worker.js
+++ b/html/canvas/offscreen/fill-and-stroke-styles/2d.pattern.basic.image.worker.js
@@ -7,7 +7,6 @@
 importScripts("/html/canvas/resources/canvas-tests.js");
 
 promise_test(async t => {
-
   var canvas = new OffscreenCanvas(100, 50);
   var ctx = canvas.getContext('2d');
 
@@ -24,6 +23,5 @@
   _assertPixel(canvas, 98,1, 0,255,0,255);
   _assertPixel(canvas, 1,48, 0,255,0,255);
   _assertPixel(canvas, 98,48, 0,255,0,255);
-  t.done();
 }, "");
 done();
diff --git a/html/canvas/offscreen/fill-and-stroke-styles/2d.pattern.basic.type.worker.js b/html/canvas/offscreen/fill-and-stroke-styles/2d.pattern.basic.type.worker.js
index 56a8a7d..382214a 100644
--- a/html/canvas/offscreen/fill-and-stroke-styles/2d.pattern.basic.type.worker.js
+++ b/html/canvas/offscreen/fill-and-stroke-styles/2d.pattern.basic.type.worker.js
@@ -7,7 +7,6 @@
 importScripts("/html/canvas/resources/canvas-tests.js");
 
 promise_test(async t => {
-
   var canvas = new OffscreenCanvas(100, 50);
   var ctx = canvas.getContext('2d');
 
@@ -20,6 +19,5 @@
   var img = await createImageBitmap(blob);
   var pattern = ctx.createPattern(img, 'no-repeat');
   _assert(pattern.thisImplementsCanvasPattern, "pattern.thisImplementsCanvasPattern");
-  t.done();
 }, "");
 done();
diff --git a/html/canvas/offscreen/fill-and-stroke-styles/2d.pattern.crosscanvas.worker.js b/html/canvas/offscreen/fill-and-stroke-styles/2d.pattern.crosscanvas.worker.js
index d9004fc..ff2acc6 100644
--- a/html/canvas/offscreen/fill-and-stroke-styles/2d.pattern.crosscanvas.worker.js
+++ b/html/canvas/offscreen/fill-and-stroke-styles/2d.pattern.crosscanvas.worker.js
@@ -7,7 +7,6 @@
 importScripts("/html/canvas/resources/canvas-tests.js");
 
 promise_test(async t => {
-
   var canvas = new OffscreenCanvas(100, 50);
   var ctx = canvas.getContext('2d');
 
@@ -22,6 +21,5 @@
   ctx.fillRect(0, 0, 100, 50);
 
   _assertPixel(canvas, 50,25, 0,255,0,255);
-  t.done();
 }, "");
 done();
diff --git a/html/canvas/offscreen/fill-and-stroke-styles/2d.pattern.paint.norepeat.basic.worker.js b/html/canvas/offscreen/fill-and-stroke-styles/2d.pattern.paint.norepeat.basic.worker.js
index 9ac4e16..a093e61 100644
--- a/html/canvas/offscreen/fill-and-stroke-styles/2d.pattern.paint.norepeat.basic.worker.js
+++ b/html/canvas/offscreen/fill-and-stroke-styles/2d.pattern.paint.norepeat.basic.worker.js
@@ -7,7 +7,6 @@
 importScripts("/html/canvas/resources/canvas-tests.js");
 
 promise_test(async t => {
-
   var canvas = new OffscreenCanvas(100, 50);
   var ctx = canvas.getContext('2d');
 
@@ -25,6 +24,5 @@
   _assertPixel(canvas, 98,1, 0,255,0,255);
   _assertPixel(canvas, 1,48, 0,255,0,255);
   _assertPixel(canvas, 98,48, 0,255,0,255);
-  t.done();
 }, "");
 done();
diff --git a/html/canvas/offscreen/fill-and-stroke-styles/2d.pattern.paint.norepeat.coord1.worker.js b/html/canvas/offscreen/fill-and-stroke-styles/2d.pattern.paint.norepeat.coord1.worker.js
index 6c4a140..3b4365d 100644
--- a/html/canvas/offscreen/fill-and-stroke-styles/2d.pattern.paint.norepeat.coord1.worker.js
+++ b/html/canvas/offscreen/fill-and-stroke-styles/2d.pattern.paint.norepeat.coord1.worker.js
@@ -7,7 +7,6 @@
 importScripts("/html/canvas/resources/canvas-tests.js");
 
 promise_test(async t => {
-
   var canvas = new OffscreenCanvas(100, 50);
   var ctx = canvas.getContext('2d');
 
@@ -28,6 +27,5 @@
   _assertPixel(canvas, 98,1, 0,255,0,255);
   _assertPixel(canvas, 1,48, 0,255,0,255);
   _assertPixel(canvas, 98,48, 0,255,0,255);
-  t.done();
 }, "");
 done();
diff --git a/html/canvas/offscreen/fill-and-stroke-styles/2d.pattern.paint.norepeat.coord2.worker.js b/html/canvas/offscreen/fill-and-stroke-styles/2d.pattern.paint.norepeat.coord2.worker.js
index d2fdd86..3314efd 100644
--- a/html/canvas/offscreen/fill-and-stroke-styles/2d.pattern.paint.norepeat.coord2.worker.js
+++ b/html/canvas/offscreen/fill-and-stroke-styles/2d.pattern.paint.norepeat.coord2.worker.js
@@ -7,7 +7,6 @@
 importScripts("/html/canvas/resources/canvas-tests.js");
 
 promise_test(async t => {
-
   var canvas = new OffscreenCanvas(100, 50);
   var ctx = canvas.getContext('2d');
 
@@ -29,6 +28,5 @@
   _assertPixel(canvas, 98,1, 0,255,0,255);
   _assertPixel(canvas, 1,48, 0,255,0,255);
   _assertPixel(canvas, 98,48, 0,255,0,255);
-  t.done();
 }, "");
 done();
diff --git a/html/canvas/offscreen/fill-and-stroke-styles/2d.pattern.paint.norepeat.coord3.worker.js b/html/canvas/offscreen/fill-and-stroke-styles/2d.pattern.paint.norepeat.coord3.worker.js
index 584a5d6..6120bd0 100644
--- a/html/canvas/offscreen/fill-and-stroke-styles/2d.pattern.paint.norepeat.coord3.worker.js
+++ b/html/canvas/offscreen/fill-and-stroke-styles/2d.pattern.paint.norepeat.coord3.worker.js
@@ -7,7 +7,6 @@
 importScripts("/html/canvas/resources/canvas-tests.js");
 
 promise_test(async t => {
-
   var canvas = new OffscreenCanvas(100, 50);
   var ctx = canvas.getContext('2d');
 
@@ -29,6 +28,5 @@
   _assertPixel(canvas, 98,1, 0,255,0,255);
   _assertPixel(canvas, 1,48, 0,255,0,255);
   _assertPixel(canvas, 98,48, 0,255,0,255);
-  t.done();
 }, "");
 done();
diff --git a/html/canvas/offscreen/fill-and-stroke-styles/2d.pattern.paint.norepeat.outside.worker.js b/html/canvas/offscreen/fill-and-stroke-styles/2d.pattern.paint.norepeat.outside.worker.js
index 0b5fef9..b029f90 100644
--- a/html/canvas/offscreen/fill-and-stroke-styles/2d.pattern.paint.norepeat.outside.worker.js
+++ b/html/canvas/offscreen/fill-and-stroke-styles/2d.pattern.paint.norepeat.outside.worker.js
@@ -7,7 +7,6 @@
 importScripts("/html/canvas/resources/canvas-tests.js");
 
 promise_test(async t => {
-
   var canvas = new OffscreenCanvas(100, 50);
   var ctx = canvas.getContext('2d');
 
@@ -31,6 +30,5 @@
   _assertPixel(canvas, 98,1, 0,255,0,255);
   _assertPixel(canvas, 1,48, 0,255,0,255);
   _assertPixel(canvas, 98,48, 0,255,0,255);
-  t.done();
 }, "");
 done();
diff --git a/html/canvas/offscreen/fill-and-stroke-styles/2d.pattern.paint.orientation.image.worker.js b/html/canvas/offscreen/fill-and-stroke-styles/2d.pattern.paint.orientation.image.worker.js
index b303b2d..b3e61d5 100644
--- a/html/canvas/offscreen/fill-and-stroke-styles/2d.pattern.paint.orientation.image.worker.js
+++ b/html/canvas/offscreen/fill-and-stroke-styles/2d.pattern.paint.orientation.image.worker.js
@@ -7,7 +7,6 @@
 importScripts("/html/canvas/resources/canvas-tests.js");
 
 promise_test(async t => {
-
   var canvas = new OffscreenCanvas(100, 50);
   var ctx = canvas.getContext('2d');
 
@@ -31,6 +30,5 @@
   _assertPixel(canvas, 98,1, 0,255,0,255);
   _assertPixel(canvas, 1,48, 0,255,0,255);
   _assertPixel(canvas, 98,48, 0,255,0,255);
-  t.done();
 }, "Image patterns do not get flipped when painted");
 done();
diff --git a/html/canvas/offscreen/fill-and-stroke-styles/2d.pattern.paint.repeat.basic.worker.js b/html/canvas/offscreen/fill-and-stroke-styles/2d.pattern.paint.repeat.basic.worker.js
index 37f4c04..872acb1 100644
--- a/html/canvas/offscreen/fill-and-stroke-styles/2d.pattern.paint.repeat.basic.worker.js
+++ b/html/canvas/offscreen/fill-and-stroke-styles/2d.pattern.paint.repeat.basic.worker.js
@@ -7,7 +7,6 @@
 importScripts("/html/canvas/resources/canvas-tests.js");
 
 promise_test(async t => {
-
   var canvas = new OffscreenCanvas(100, 50);
   var ctx = canvas.getContext('2d');
 
@@ -25,6 +24,5 @@
   _assertPixel(canvas, 98,1, 0,255,0,255);
   _assertPixel(canvas, 1,48, 0,255,0,255);
   _assertPixel(canvas, 98,48, 0,255,0,255);
-  t.done();
 }, "");
 done();
diff --git a/html/canvas/offscreen/fill-and-stroke-styles/2d.pattern.paint.repeat.coord1.worker.js b/html/canvas/offscreen/fill-and-stroke-styles/2d.pattern.paint.repeat.coord1.worker.js
index efbd1c5..009b072 100644
--- a/html/canvas/offscreen/fill-and-stroke-styles/2d.pattern.paint.repeat.coord1.worker.js
+++ b/html/canvas/offscreen/fill-and-stroke-styles/2d.pattern.paint.repeat.coord1.worker.js
@@ -7,7 +7,6 @@
 importScripts("/html/canvas/resources/canvas-tests.js");
 
 promise_test(async t => {
-
   var canvas = new OffscreenCanvas(100, 50);
   var ctx = canvas.getContext('2d');
 
@@ -26,6 +25,5 @@
   _assertPixel(canvas, 98,1, 0,255,0,255);
   _assertPixel(canvas, 1,48, 0,255,0,255);
   _assertPixel(canvas, 98,48, 0,255,0,255);
-  t.done();
 }, "");
 done();
diff --git a/html/canvas/offscreen/fill-and-stroke-styles/2d.pattern.paint.repeat.coord2.worker.js b/html/canvas/offscreen/fill-and-stroke-styles/2d.pattern.paint.repeat.coord2.worker.js
index db707ec..21e3349 100644
--- a/html/canvas/offscreen/fill-and-stroke-styles/2d.pattern.paint.repeat.coord2.worker.js
+++ b/html/canvas/offscreen/fill-and-stroke-styles/2d.pattern.paint.repeat.coord2.worker.js
@@ -7,7 +7,6 @@
 importScripts("/html/canvas/resources/canvas-tests.js");
 
 promise_test(async t => {
-
   var canvas = new OffscreenCanvas(100, 50);
   var ctx = canvas.getContext('2d');
 
@@ -22,6 +21,5 @@
   _assertPixel(canvas, 98,1, 0,255,0,255);
   _assertPixel(canvas, 1,48, 0,255,0,255);
   _assertPixel(canvas, 98,48, 0,255,0,255);
-  t.done();
 }, "");
 done();
diff --git a/html/canvas/offscreen/fill-and-stroke-styles/2d.pattern.paint.repeat.coord3.worker.js b/html/canvas/offscreen/fill-and-stroke-styles/2d.pattern.paint.repeat.coord3.worker.js
index e58cddc..39c6037 100644
--- a/html/canvas/offscreen/fill-and-stroke-styles/2d.pattern.paint.repeat.coord3.worker.js
+++ b/html/canvas/offscreen/fill-and-stroke-styles/2d.pattern.paint.repeat.coord3.worker.js
@@ -7,7 +7,6 @@
 importScripts("/html/canvas/resources/canvas-tests.js");
 
 promise_test(async t => {
-
   var canvas = new OffscreenCanvas(100, 50);
   var ctx = canvas.getContext('2d');
 
@@ -25,6 +24,5 @@
   _assertPixel(canvas, 98,1, 0,255,0,255);
   _assertPixel(canvas, 1,48, 0,255,0,255);
   _assertPixel(canvas, 98,48, 0,255,0,255);
-  t.done();
 }, "");
 done();
diff --git a/html/canvas/offscreen/fill-and-stroke-styles/2d.pattern.paint.repeat.outside.worker.js b/html/canvas/offscreen/fill-and-stroke-styles/2d.pattern.paint.repeat.outside.worker.js
index 4a173af..2b4739f 100644
--- a/html/canvas/offscreen/fill-and-stroke-styles/2d.pattern.paint.repeat.outside.worker.js
+++ b/html/canvas/offscreen/fill-and-stroke-styles/2d.pattern.paint.repeat.outside.worker.js
@@ -7,7 +7,6 @@
 importScripts("/html/canvas/resources/canvas-tests.js");
 
 promise_test(async t => {
-
   var canvas = new OffscreenCanvas(100, 50);
   var ctx = canvas.getContext('2d');
 
@@ -26,6 +25,5 @@
   _assertPixel(canvas, 98,1, 0,255,0,255);
   _assertPixel(canvas, 1,48, 0,255,0,255);
   _assertPixel(canvas, 98,48, 0,255,0,255);
-  t.done();
 }, "");
 done();
diff --git a/html/canvas/offscreen/fill-and-stroke-styles/2d.pattern.paint.repeatx.basic.worker.js b/html/canvas/offscreen/fill-and-stroke-styles/2d.pattern.paint.repeatx.basic.worker.js
index e776f7a..0b93221 100644
--- a/html/canvas/offscreen/fill-and-stroke-styles/2d.pattern.paint.repeatx.basic.worker.js
+++ b/html/canvas/offscreen/fill-and-stroke-styles/2d.pattern.paint.repeatx.basic.worker.js
@@ -7,7 +7,6 @@
 importScripts("/html/canvas/resources/canvas-tests.js");
 
 promise_test(async t => {
-
   var canvas = new OffscreenCanvas(100, 50);
   var ctx = canvas.getContext('2d');
 
@@ -27,6 +26,5 @@
   _assertPixel(canvas, 98,1, 0,255,0,255);
   _assertPixel(canvas, 1,48, 0,255,0,255);
   _assertPixel(canvas, 98,48, 0,255,0,255);
-  t.done();
 }, "");
 done();
diff --git a/html/canvas/offscreen/fill-and-stroke-styles/2d.pattern.paint.repeatx.coord1.worker.js b/html/canvas/offscreen/fill-and-stroke-styles/2d.pattern.paint.repeatx.coord1.worker.js
index 57c2102..9dec7ce 100644
--- a/html/canvas/offscreen/fill-and-stroke-styles/2d.pattern.paint.repeatx.coord1.worker.js
+++ b/html/canvas/offscreen/fill-and-stroke-styles/2d.pattern.paint.repeatx.coord1.worker.js
@@ -7,7 +7,6 @@
 importScripts("/html/canvas/resources/canvas-tests.js");
 
 promise_test(async t => {
-
   var canvas = new OffscreenCanvas(100, 50);
   var ctx = canvas.getContext('2d');
 
@@ -31,6 +30,5 @@
   _assertPixel(canvas, 98,25, 0,255,0,255);
   _assertPixel(canvas, 1,48, 0,255,0,255);
   _assertPixel(canvas, 98,48, 0,255,0,255);
-  t.done();
 }, "");
 done();
diff --git a/html/canvas/offscreen/fill-and-stroke-styles/2d.pattern.paint.repeatx.outside.worker.js b/html/canvas/offscreen/fill-and-stroke-styles/2d.pattern.paint.repeatx.outside.worker.js
index e40f6aa..65cfe4e 100644
--- a/html/canvas/offscreen/fill-and-stroke-styles/2d.pattern.paint.repeatx.outside.worker.js
+++ b/html/canvas/offscreen/fill-and-stroke-styles/2d.pattern.paint.repeatx.outside.worker.js
@@ -7,7 +7,6 @@
 importScripts("/html/canvas/resources/canvas-tests.js");
 
 promise_test(async t => {
-
   var canvas = new OffscreenCanvas(100, 50);
   var ctx = canvas.getContext('2d');
 
@@ -28,6 +27,5 @@
   _assertPixel(canvas, 98,1, 0,255,0,255);
   _assertPixel(canvas, 1,48, 0,255,0,255);
   _assertPixel(canvas, 98,48, 0,255,0,255);
-  t.done();
 }, "");
 done();
diff --git a/html/canvas/offscreen/fill-and-stroke-styles/2d.pattern.paint.repeaty.basic.worker.js b/html/canvas/offscreen/fill-and-stroke-styles/2d.pattern.paint.repeaty.basic.worker.js
index 6a53b5d..ee717dc 100644
--- a/html/canvas/offscreen/fill-and-stroke-styles/2d.pattern.paint.repeaty.basic.worker.js
+++ b/html/canvas/offscreen/fill-and-stroke-styles/2d.pattern.paint.repeaty.basic.worker.js
@@ -7,7 +7,6 @@
 importScripts("/html/canvas/resources/canvas-tests.js");
 
 promise_test(async t => {
-
   var canvas = new OffscreenCanvas(100, 50);
   var ctx = canvas.getContext('2d');
 
@@ -27,6 +26,5 @@
   _assertPixel(canvas, 98,1, 0,255,0,255);
   _assertPixel(canvas, 1,48, 0,255,0,255);
   _assertPixel(canvas, 98,48, 0,255,0,255);
-  t.done();
 }, "");
 done();
diff --git a/html/canvas/offscreen/fill-and-stroke-styles/2d.pattern.paint.repeaty.coord1.worker.js b/html/canvas/offscreen/fill-and-stroke-styles/2d.pattern.paint.repeaty.coord1.worker.js
index d59abb6..e35777a 100644
--- a/html/canvas/offscreen/fill-and-stroke-styles/2d.pattern.paint.repeaty.coord1.worker.js
+++ b/html/canvas/offscreen/fill-and-stroke-styles/2d.pattern.paint.repeaty.coord1.worker.js
@@ -7,7 +7,6 @@
 importScripts("/html/canvas/resources/canvas-tests.js");
 
 promise_test(async t => {
-
   var canvas = new OffscreenCanvas(100, 50);
   var ctx = canvas.getContext('2d');
 
@@ -31,6 +30,5 @@
   _assertPixel(canvas, 1,48, 0,255,0,255);
   _assertPixel(canvas, 50,48, 0,255,0,255);
   _assertPixel(canvas, 98,48, 0,255,0,255);
-  t.done();
 }, "");
 done();
diff --git a/html/canvas/offscreen/fill-and-stroke-styles/2d.pattern.paint.repeaty.outside.worker.js b/html/canvas/offscreen/fill-and-stroke-styles/2d.pattern.paint.repeaty.outside.worker.js
index c4feba1..531ff55 100644
--- a/html/canvas/offscreen/fill-and-stroke-styles/2d.pattern.paint.repeaty.outside.worker.js
+++ b/html/canvas/offscreen/fill-and-stroke-styles/2d.pattern.paint.repeaty.outside.worker.js
@@ -7,7 +7,6 @@
 importScripts("/html/canvas/resources/canvas-tests.js");
 
 promise_test(async t => {
-
   var canvas = new OffscreenCanvas(100, 50);
   var ctx = canvas.getContext('2d');
 
@@ -28,6 +27,5 @@
   _assertPixel(canvas, 98,1, 0,255,0,255);
   _assertPixel(canvas, 1,48, 0,255,0,255);
   _assertPixel(canvas, 98,48, 0,255,0,255);
-  t.done();
 }, "");
 done();
diff --git a/html/canvas/offscreen/fill-and-stroke-styles/2d.pattern.repeat.empty.worker.js b/html/canvas/offscreen/fill-and-stroke-styles/2d.pattern.repeat.empty.worker.js
index 5aefc0d..c2ed94a 100644
--- a/html/canvas/offscreen/fill-and-stroke-styles/2d.pattern.repeat.empty.worker.js
+++ b/html/canvas/offscreen/fill-and-stroke-styles/2d.pattern.repeat.empty.worker.js
@@ -7,7 +7,6 @@
 importScripts("/html/canvas/resources/canvas-tests.js");
 
 promise_test(async t => {
-
   var canvas = new OffscreenCanvas(100, 50);
   var ctx = canvas.getContext('2d');
 
@@ -24,6 +23,5 @@
   _assertPixel(canvas, 98,1, 0,255,0,255);
   _assertPixel(canvas, 1,48, 0,255,0,255);
   _assertPixel(canvas, 98,48, 0,255,0,255);
-  t.done();
 }, "");
 done();
diff --git a/html/canvas/offscreen/layers/2d.layer.malformed-operations-with-promises.convertToBlob.worker.js b/html/canvas/offscreen/layers/2d.layer.malformed-operations-with-promises.convertToBlob.worker.js
index be0f4f2..8361e19 100644
--- a/html/canvas/offscreen/layers/2d.layer.malformed-operations-with-promises.convertToBlob.worker.js
+++ b/html/canvas/offscreen/layers/2d.layer.malformed-operations-with-promises.convertToBlob.worker.js
@@ -7,7 +7,6 @@
 importScripts("/html/canvas/resources/canvas-tests.js");
 
 promise_test(async t => {
-
   var canvas = new OffscreenCanvas(200, 200);
   var ctx = canvas.getContext('2d');
 
@@ -18,6 +17,5 @@
   // Calling again inside a layer should throw.
   ctx.beginLayer();
   await promise_rejects_dom(t, 'InvalidStateError', canvas.convertToBlob());
-  t.done();
 }, "Check that exceptions are thrown for operations that are malformed while layers are open.");
 done();
diff --git a/html/canvas/offscreen/layers/2d.layer.malformed-operations-with-promises.createImageBitmap.worker.js b/html/canvas/offscreen/layers/2d.layer.malformed-operations-with-promises.createImageBitmap.worker.js
index b286b7a..d64f693 100644
--- a/html/canvas/offscreen/layers/2d.layer.malformed-operations-with-promises.createImageBitmap.worker.js
+++ b/html/canvas/offscreen/layers/2d.layer.malformed-operations-with-promises.createImageBitmap.worker.js
@@ -7,7 +7,6 @@
 importScripts("/html/canvas/resources/canvas-tests.js");
 
 promise_test(async t => {
-
   var canvas = new OffscreenCanvas(200, 200);
   var ctx = canvas.getContext('2d');
 
@@ -18,6 +17,5 @@
   // Calling again inside a layer should throw.
   ctx.beginLayer();
   await promise_rejects_dom(t, 'InvalidStateError', createImageBitmap(canvas));
-  t.done();
 }, "Check that exceptions are thrown for operations that are malformed while layers are open.");
 done();
diff --git a/html/canvas/offscreen/shadows/2d.shadow.image.alpha.worker.js b/html/canvas/offscreen/shadows/2d.shadow.image.alpha.worker.js
index 827bd2c..dee8927 100644
--- a/html/canvas/offscreen/shadows/2d.shadow.image.alpha.worker.js
+++ b/html/canvas/offscreen/shadows/2d.shadow.image.alpha.worker.js
@@ -7,7 +7,6 @@
 importScripts("/html/canvas/resources/canvas-tests.js");
 
 promise_test(async t => {
-
   var canvas = new OffscreenCanvas(100, 50);
   var ctx = canvas.getContext('2d');
 
@@ -21,6 +20,5 @@
   ctx.drawImage(img, 0, -50);
 
   _assertPixelApprox(canvas, 50,25, 127,0,127,255, 2);
-  t.done();
 }, "Shadows are drawn correctly for partially-transparent images");
 done();
diff --git a/html/canvas/offscreen/shadows/2d.shadow.image.basic.worker.js b/html/canvas/offscreen/shadows/2d.shadow.image.basic.worker.js
index 2d02232..7aa17da 100644
--- a/html/canvas/offscreen/shadows/2d.shadow.image.basic.worker.js
+++ b/html/canvas/offscreen/shadows/2d.shadow.image.basic.worker.js
@@ -7,7 +7,6 @@
 importScripts("/html/canvas/resources/canvas-tests.js");
 
 promise_test(async t => {
-
   var canvas = new OffscreenCanvas(100, 50);
   var ctx = canvas.getContext('2d');
 
@@ -21,6 +20,5 @@
   ctx.drawImage(img, 0, -50);
 
   _assertPixel(canvas, 50,25, 0,255,0,255);
-  t.done();
 }, "Shadows are drawn for images");
 done();
diff --git a/html/canvas/offscreen/shadows/2d.shadow.image.scale.worker.js b/html/canvas/offscreen/shadows/2d.shadow.image.scale.worker.js
index 2c10381..3c1cf87 100644
--- a/html/canvas/offscreen/shadows/2d.shadow.image.scale.worker.js
+++ b/html/canvas/offscreen/shadows/2d.shadow.image.scale.worker.js
@@ -7,7 +7,6 @@
 importScripts("/html/canvas/resources/canvas-tests.js");
 
 promise_test(async t => {
-
   var canvas = new OffscreenCanvas(100, 50);
   var ctx = canvas.getContext('2d');
 
@@ -23,6 +22,5 @@
   _assertPixelApprox(canvas, 25,25, 0,255,0,255, 2);
   _assertPixelApprox(canvas, 50,25, 0,255,0,255, 2);
   _assertPixelApprox(canvas, 75,25, 0,255,0,255, 2);
-  t.done();
 }, "Shadows are drawn correctly for scaled images");
 done();
diff --git a/html/canvas/offscreen/shadows/2d.shadow.image.section.worker.js b/html/canvas/offscreen/shadows/2d.shadow.image.section.worker.js
index 94affdf..c357a3a 100644
--- a/html/canvas/offscreen/shadows/2d.shadow.image.section.worker.js
+++ b/html/canvas/offscreen/shadows/2d.shadow.image.section.worker.js
@@ -7,7 +7,6 @@
 importScripts("/html/canvas/resources/canvas-tests.js");
 
 promise_test(async t => {
-
   var canvas = new OffscreenCanvas(100, 50);
   var ctx = canvas.getContext('2d');
 
@@ -23,6 +22,5 @@
   _assertPixelApprox(canvas, 25,25, 0,255,0,255, 2);
   _assertPixelApprox(canvas, 50,25, 0,255,0,255, 2);
   _assertPixelApprox(canvas, 75,25, 0,255,0,255, 2);
-  t.done();
 }, "Shadows are not drawn for areas outside image source rectangles");
 done();
diff --git a/html/canvas/offscreen/shadows/2d.shadow.image.transparent.1.worker.js b/html/canvas/offscreen/shadows/2d.shadow.image.transparent.1.worker.js
index c5421d7..5440944e 100644
--- a/html/canvas/offscreen/shadows/2d.shadow.image.transparent.1.worker.js
+++ b/html/canvas/offscreen/shadows/2d.shadow.image.transparent.1.worker.js
@@ -7,7 +7,6 @@
 importScripts("/html/canvas/resources/canvas-tests.js");
 
 promise_test(async t => {
-
   var canvas = new OffscreenCanvas(100, 50);
   var ctx = canvas.getContext('2d');
 
@@ -21,6 +20,5 @@
   ctx.drawImage(img, 0, -50);
 
   _assertPixel(canvas, 50,25, 0,255,0,255);
-  t.done();
 }, "Shadows are not drawn for transparent images");
 done();
diff --git a/html/canvas/offscreen/shadows/2d.shadow.image.transparent.2.worker.js b/html/canvas/offscreen/shadows/2d.shadow.image.transparent.2.worker.js
index 071c584..0554c03 100644
--- a/html/canvas/offscreen/shadows/2d.shadow.image.transparent.2.worker.js
+++ b/html/canvas/offscreen/shadows/2d.shadow.image.transparent.2.worker.js
@@ -7,7 +7,6 @@
 importScripts("/html/canvas/resources/canvas-tests.js");
 
 promise_test(async t => {
-
   var canvas = new OffscreenCanvas(100, 50);
   var ctx = canvas.getContext('2d');
 
@@ -27,6 +26,5 @@
   _assertPixel(canvas, 25,25, 0,255,0,255);
   _assertPixel(canvas, 50,25, 0,255,0,255);
   _assertPixel(canvas, 75,25, 0,255,0,255);
-  t.done();
 }, "Shadows are not drawn for transparent parts of images");
 done();
diff --git a/html/canvas/offscreen/shadows/2d.shadow.pattern.alpha.worker.js b/html/canvas/offscreen/shadows/2d.shadow.pattern.alpha.worker.js
index 41a826a..9d5e5b0 100644
--- a/html/canvas/offscreen/shadows/2d.shadow.pattern.alpha.worker.js
+++ b/html/canvas/offscreen/shadows/2d.shadow.pattern.alpha.worker.js
@@ -7,7 +7,6 @@
 importScripts("/html/canvas/resources/canvas-tests.js");
 
 promise_test(async t => {
-
   var canvas = new OffscreenCanvas(100, 50);
   var ctx = canvas.getContext('2d');
 
@@ -23,6 +22,5 @@
   ctx.fillRect(0, -50, 100, 50);
 
   _assertPixelApprox(canvas, 50,25, 127,0,127,255, 2);
-  t.done();
 }, "Shadows are drawn correctly for partially-transparent fill patterns");
 done();
diff --git a/html/canvas/offscreen/shadows/2d.shadow.pattern.basic.worker.js b/html/canvas/offscreen/shadows/2d.shadow.pattern.basic.worker.js
index 7a8f7e8..d2db242 100644
--- a/html/canvas/offscreen/shadows/2d.shadow.pattern.basic.worker.js
+++ b/html/canvas/offscreen/shadows/2d.shadow.pattern.basic.worker.js
@@ -7,7 +7,6 @@
 importScripts("/html/canvas/resources/canvas-tests.js");
 
 promise_test(async t => {
-
   var canvas = new OffscreenCanvas(100, 50);
   var ctx = canvas.getContext('2d');
 
@@ -23,6 +22,5 @@
   ctx.fillRect(0, -50, 100, 50);
 
   _assertPixel(canvas, 50,25, 0,255,0,255);
-  t.done();
 }, "Shadows are drawn for fill patterns");
 done();
diff --git a/html/canvas/offscreen/shadows/2d.shadow.pattern.transparent.1.worker.js b/html/canvas/offscreen/shadows/2d.shadow.pattern.transparent.1.worker.js
index 8414db6..af07985 100644
--- a/html/canvas/offscreen/shadows/2d.shadow.pattern.transparent.1.worker.js
+++ b/html/canvas/offscreen/shadows/2d.shadow.pattern.transparent.1.worker.js
@@ -7,7 +7,6 @@
 importScripts("/html/canvas/resources/canvas-tests.js");
 
 promise_test(async t => {
-
   var canvas = new OffscreenCanvas(100, 50);
   var ctx = canvas.getContext('2d');
 
@@ -23,6 +22,5 @@
   ctx.fillRect(0, -50, 100, 50);
 
   _assertPixel(canvas, 50,25, 0,255,0,255);
-  t.done();
 }, "Shadows are not drawn for transparent fill patterns");
 done();
diff --git a/html/canvas/offscreen/shadows/2d.shadow.pattern.transparent.2.worker.js b/html/canvas/offscreen/shadows/2d.shadow.pattern.transparent.2.worker.js
index 726a42d..1cf4f3e 100644
--- a/html/canvas/offscreen/shadows/2d.shadow.pattern.transparent.2.worker.js
+++ b/html/canvas/offscreen/shadows/2d.shadow.pattern.transparent.2.worker.js
@@ -7,7 +7,6 @@
 importScripts("/html/canvas/resources/canvas-tests.js");
 
 promise_test(async t => {
-
   var canvas = new OffscreenCanvas(100, 50);
   var ctx = canvas.getContext('2d');
 
@@ -27,6 +26,5 @@
   _assertPixel(canvas, 25,25, 0,255,0,255);
   _assertPixel(canvas, 50,25, 0,255,0,255);
   _assertPixel(canvas, 75,25, 0,255,0,255);
-  t.done();
 }, "Shadows are not drawn for transparent parts of fill patterns");
 done();
diff --git a/html/canvas/offscreen/text/2d.text.draw.align.center.worker.js b/html/canvas/offscreen/text/2d.text.draw.align.center.worker.js
index 44f093c..c11c843 100644
--- a/html/canvas/offscreen/text/2d.text.draw.align.center.worker.js
+++ b/html/canvas/offscreen/text/2d.text.draw.align.center.worker.js
@@ -7,7 +7,6 @@
 importScripts("/html/canvas/resources/canvas-tests.js");
 
 promise_test(async t => {
-
   var canvas = new OffscreenCanvas(100, 50);
   var ctx = canvas.getContext('2d');
 
@@ -27,6 +26,5 @@
   _assertPixelApprox(canvas, 75,25, 0,255,0,255, 2);
   _assertPixelApprox(canvas, 5,45, 0,255,0,255, 2);
   _assertPixelApprox(canvas, 95,45, 0,255,0,255, 2);
-  t.done();
 }, "textAlign center is the center of the em squares (not the bounding box)");
 done();
diff --git a/html/canvas/offscreen/text/2d.text.draw.align.end.ltr.worker.js b/html/canvas/offscreen/text/2d.text.draw.align.end.ltr.worker.js
index 4bd0f5a..f5c5769 100644
--- a/html/canvas/offscreen/text/2d.text.draw.align.end.ltr.worker.js
+++ b/html/canvas/offscreen/text/2d.text.draw.align.end.ltr.worker.js
@@ -7,7 +7,6 @@
 importScripts("/html/canvas/resources/canvas-tests.js");
 
 promise_test(async t => {
-
   var canvas = new OffscreenCanvas(100, 50);
   var ctx = canvas.getContext('2d');
 
@@ -28,6 +27,5 @@
   _assertPixelApprox(canvas, 75,25, 0,255,0,255, 2);
   _assertPixelApprox(canvas, 5,45, 0,255,0,255, 2);
   _assertPixelApprox(canvas, 95,45, 0,255,0,255, 2);
-  t.done();
 }, "textAlign end with ltr is the right edge");
 done();
diff --git a/html/canvas/offscreen/text/2d.text.draw.align.end.rtl.worker.js b/html/canvas/offscreen/text/2d.text.draw.align.end.rtl.worker.js
index b3e62d8..90e21f4 100644
--- a/html/canvas/offscreen/text/2d.text.draw.align.end.rtl.worker.js
+++ b/html/canvas/offscreen/text/2d.text.draw.align.end.rtl.worker.js
@@ -7,7 +7,6 @@
 importScripts("/html/canvas/resources/canvas-tests.js");
 
 promise_test(async t => {
-
   var canvas = new OffscreenCanvas(100, 50);
   var ctx = canvas.getContext('2d');
 
@@ -28,6 +27,5 @@
   _assertPixelApprox(canvas, 75,25, 0,255,0,255, 2);
   _assertPixelApprox(canvas, 5,45, 0,255,0,255, 2);
   _assertPixelApprox(canvas, 95,45, 0,255,0,255, 2);
-  t.done();
 }, "textAlign end with rtl is the left edge");
 done();
diff --git a/html/canvas/offscreen/text/2d.text.draw.align.left.worker.js b/html/canvas/offscreen/text/2d.text.draw.align.left.worker.js
index c7dc0be..0f92969 100644
--- a/html/canvas/offscreen/text/2d.text.draw.align.left.worker.js
+++ b/html/canvas/offscreen/text/2d.text.draw.align.left.worker.js
@@ -7,7 +7,6 @@
 importScripts("/html/canvas/resources/canvas-tests.js");
 
 promise_test(async t => {
-
   var canvas = new OffscreenCanvas(100, 50);
   var ctx = canvas.getContext('2d');
 
@@ -27,6 +26,5 @@
   _assertPixelApprox(canvas, 75,25, 0,255,0,255, 2);
   _assertPixelApprox(canvas, 5,45, 0,255,0,255, 2);
   _assertPixelApprox(canvas, 95,45, 0,255,0,255, 2);
-  t.done();
 }, "textAlign left is the left of the first em square (not the bounding box)");
 done();
diff --git a/html/canvas/offscreen/text/2d.text.draw.align.right.worker.js b/html/canvas/offscreen/text/2d.text.draw.align.right.worker.js
index 58fe85e..5941928 100644
--- a/html/canvas/offscreen/text/2d.text.draw.align.right.worker.js
+++ b/html/canvas/offscreen/text/2d.text.draw.align.right.worker.js
@@ -7,7 +7,6 @@
 importScripts("/html/canvas/resources/canvas-tests.js");
 
 promise_test(async t => {
-
   var canvas = new OffscreenCanvas(100, 50);
   var ctx = canvas.getContext('2d');
 
@@ -27,6 +26,5 @@
   _assertPixelApprox(canvas, 75,25, 0,255,0,255, 2);
   _assertPixelApprox(canvas, 5,45, 0,255,0,255, 2);
   _assertPixelApprox(canvas, 95,45, 0,255,0,255, 2);
-  t.done();
 }, "textAlign right is the right of the last em square (not the bounding box)");
 done();
diff --git a/html/canvas/offscreen/text/2d.text.draw.align.start.ltr.worker.js b/html/canvas/offscreen/text/2d.text.draw.align.start.ltr.worker.js
index c0793d9..32e6fc0 100644
--- a/html/canvas/offscreen/text/2d.text.draw.align.start.ltr.worker.js
+++ b/html/canvas/offscreen/text/2d.text.draw.align.start.ltr.worker.js
@@ -7,7 +7,6 @@
 importScripts("/html/canvas/resources/canvas-tests.js");
 
 promise_test(async t => {
-
   var canvas = new OffscreenCanvas(100, 50);
   var ctx = canvas.getContext('2d');
 
@@ -28,6 +27,5 @@
   _assertPixelApprox(canvas, 75,25, 0,255,0,255, 2);
   _assertPixelApprox(canvas, 5,45, 0,255,0,255, 2);
   _assertPixelApprox(canvas, 95,45, 0,255,0,255, 2);
-  t.done();
 }, "textAlign start with ltr is the left edge");
 done();
diff --git a/html/canvas/offscreen/text/2d.text.draw.align.start.rtl.worker.js b/html/canvas/offscreen/text/2d.text.draw.align.start.rtl.worker.js
index ed706c2..67a196d 100644
--- a/html/canvas/offscreen/text/2d.text.draw.align.start.rtl.worker.js
+++ b/html/canvas/offscreen/text/2d.text.draw.align.start.rtl.worker.js
@@ -7,7 +7,6 @@
 importScripts("/html/canvas/resources/canvas-tests.js");
 
 promise_test(async t => {
-
   var canvas = new OffscreenCanvas(100, 50);
   var ctx = canvas.getContext('2d');
 
@@ -28,6 +27,5 @@
   _assertPixelApprox(canvas, 75,25, 0,255,0,255, 2);
   _assertPixelApprox(canvas, 5,45, 0,255,0,255, 2);
   _assertPixelApprox(canvas, 95,45, 0,255,0,255, 2);
-  t.done();
 }, "textAlign start with rtl is the right edge");
 done();
diff --git a/html/canvas/offscreen/text/2d.text.draw.baseline.alphabetic.worker.js b/html/canvas/offscreen/text/2d.text.draw.baseline.alphabetic.worker.js
index a98a586..a0ab729 100644
--- a/html/canvas/offscreen/text/2d.text.draw.baseline.alphabetic.worker.js
+++ b/html/canvas/offscreen/text/2d.text.draw.baseline.alphabetic.worker.js
@@ -7,7 +7,6 @@
 importScripts("/html/canvas/resources/canvas-tests.js");
 
 promise_test(async t => {
-
   var canvas = new OffscreenCanvas(100, 50);
   var ctx = canvas.getContext('2d');
 
@@ -27,6 +26,5 @@
   _assertPixelApprox(canvas, 75,25, 0,255,0,255, 2);
   _assertPixelApprox(canvas, 5,45, 0,255,0,255, 2);
   _assertPixelApprox(canvas, 95,45, 0,255,0,255, 2);
-  t.done();
 }, "");
 done();
diff --git a/html/canvas/offscreen/text/2d.text.draw.baseline.bottom.worker.js b/html/canvas/offscreen/text/2d.text.draw.baseline.bottom.worker.js
index 30f60c5..e171388 100644
--- a/html/canvas/offscreen/text/2d.text.draw.baseline.bottom.worker.js
+++ b/html/canvas/offscreen/text/2d.text.draw.baseline.bottom.worker.js
@@ -7,7 +7,6 @@
 importScripts("/html/canvas/resources/canvas-tests.js");
 
 promise_test(async t => {
-
   var canvas = new OffscreenCanvas(100, 50);
   var ctx = canvas.getContext('2d');
 
@@ -27,6 +26,5 @@
   _assertPixelApprox(canvas, 75,25, 0,255,0,255, 2);
   _assertPixelApprox(canvas, 5,45, 0,255,0,255, 2);
   _assertPixelApprox(canvas, 95,45, 0,255,0,255, 2);
-  t.done();
 }, "textBaseline bottom is the bottom of the em square (not the bounding box)");
 done();
diff --git a/html/canvas/offscreen/text/2d.text.draw.baseline.hanging.worker.js b/html/canvas/offscreen/text/2d.text.draw.baseline.hanging.worker.js
index 638506a..906fdbb 100644
--- a/html/canvas/offscreen/text/2d.text.draw.baseline.hanging.worker.js
+++ b/html/canvas/offscreen/text/2d.text.draw.baseline.hanging.worker.js
@@ -7,7 +7,6 @@
 importScripts("/html/canvas/resources/canvas-tests.js");
 
 promise_test(async t => {
-
   var canvas = new OffscreenCanvas(100, 50);
   var ctx = canvas.getContext('2d');
 
@@ -27,6 +26,5 @@
   _assertPixelApprox(canvas, 75,25, 0,255,0,255, 2);
   _assertPixelApprox(canvas, 5,45, 0,255,0,255, 2);
   _assertPixelApprox(canvas, 95,45, 0,255,0,255, 2);
-  t.done();
 }, "");
 done();
diff --git a/html/canvas/offscreen/text/2d.text.draw.baseline.ideographic.worker.js b/html/canvas/offscreen/text/2d.text.draw.baseline.ideographic.worker.js
index 7c682fb..76ac1d9 100644
--- a/html/canvas/offscreen/text/2d.text.draw.baseline.ideographic.worker.js
+++ b/html/canvas/offscreen/text/2d.text.draw.baseline.ideographic.worker.js
@@ -7,7 +7,6 @@
 importScripts("/html/canvas/resources/canvas-tests.js");
 
 promise_test(async t => {
-
   var canvas = new OffscreenCanvas(100, 50);
   var ctx = canvas.getContext('2d');
 
@@ -27,6 +26,5 @@
   _assertPixelApprox(canvas, 75,25, 0,255,0,255, 2);
   _assertPixelApprox(canvas, 5,45, 0,255,0,255, 2);
   _assertPixelApprox(canvas, 95,45, 0,255,0,255, 2);
-  t.done();
 }, "");
 done();
diff --git a/html/canvas/offscreen/text/2d.text.draw.baseline.middle.worker.js b/html/canvas/offscreen/text/2d.text.draw.baseline.middle.worker.js
index c373ab6..c288ab4 100644
--- a/html/canvas/offscreen/text/2d.text.draw.baseline.middle.worker.js
+++ b/html/canvas/offscreen/text/2d.text.draw.baseline.middle.worker.js
@@ -7,7 +7,6 @@
 importScripts("/html/canvas/resources/canvas-tests.js");
 
 promise_test(async t => {
-
   var canvas = new OffscreenCanvas(100, 50);
   var ctx = canvas.getContext('2d');
 
@@ -27,6 +26,5 @@
   _assertPixelApprox(canvas, 75,25, 0,255,0,255, 2);
   _assertPixelApprox(canvas, 5,45, 0,255,0,255, 2);
   _assertPixelApprox(canvas, 95,45, 0,255,0,255, 2);
-  t.done();
 }, "textBaseline middle is the middle of the em square (not the bounding box)");
 done();
diff --git a/html/canvas/offscreen/text/2d.text.draw.baseline.top.worker.js b/html/canvas/offscreen/text/2d.text.draw.baseline.top.worker.js
index effc441..e7d0b16 100644
--- a/html/canvas/offscreen/text/2d.text.draw.baseline.top.worker.js
+++ b/html/canvas/offscreen/text/2d.text.draw.baseline.top.worker.js
@@ -7,7 +7,6 @@
 importScripts("/html/canvas/resources/canvas-tests.js");
 
 promise_test(async t => {
-
   var canvas = new OffscreenCanvas(100, 50);
   var ctx = canvas.getContext('2d');
 
@@ -27,6 +26,5 @@
   _assertPixelApprox(canvas, 75,25, 0,255,0,255, 2);
   _assertPixelApprox(canvas, 5,45, 0,255,0,255, 2);
   _assertPixelApprox(canvas, 95,45, 0,255,0,255, 2);
-  t.done();
 }, "textBaseline top is the top of the em square (not the bounding box)");
 done();
diff --git a/html/canvas/offscreen/text/2d.text.draw.fill.maxWidth.bound.worker.js b/html/canvas/offscreen/text/2d.text.draw.fill.maxWidth.bound.worker.js
index adcb45f..a314870 100644
--- a/html/canvas/offscreen/text/2d.text.draw.fill.maxWidth.bound.worker.js
+++ b/html/canvas/offscreen/text/2d.text.draw.fill.maxWidth.bound.worker.js
@@ -7,7 +7,6 @@
 importScripts("/html/canvas/resources/canvas-tests.js");
 
 promise_test(async t => {
-
   var canvas = new OffscreenCanvas(100, 50);
   var ctx = canvas.getContext('2d');
 
@@ -24,6 +23,5 @@
   _assertPixelApprox(canvas, 95,5, 0,255,0,255, 2);
   _assertPixelApprox(canvas, 25,25, 0,255,0,255, 2);
   _assertPixelApprox(canvas, 75,25, 0,255,0,255, 2);
-  t.done();
 }, "fillText handles maxWidth based on line size, not bounding box size");
 done();
diff --git a/html/canvas/offscreen/text/2d.text.draw.fill.maxWidth.fontface.worker.js b/html/canvas/offscreen/text/2d.text.draw.fill.maxWidth.fontface.worker.js
index 8df519b..e225e70 100644
--- a/html/canvas/offscreen/text/2d.text.draw.fill.maxWidth.fontface.worker.js
+++ b/html/canvas/offscreen/text/2d.text.draw.fill.maxWidth.fontface.worker.js
@@ -7,7 +7,6 @@
 importScripts("/html/canvas/resources/canvas-tests.js");
 
 promise_test(async t => {
-
   var canvas = new OffscreenCanvas(100, 50);
   var ctx = canvas.getContext('2d');
 
@@ -24,6 +23,5 @@
   _assertPixelApprox(canvas, 95,5, 0,255,0,255, 2);
   _assertPixelApprox(canvas, 25,25, 0,255,0,255, 2);
   _assertPixelApprox(canvas, 75,25, 0,255,0,255, 2);
-  t.done();
 }, "fillText works on @font-face fonts");
 done();
diff --git a/html/canvas/offscreen/text/2d.text.draw.fontface.notinpage.worker.js b/html/canvas/offscreen/text/2d.text.draw.fontface.notinpage.worker.js
index 628cb39..c35c82d 100644
--- a/html/canvas/offscreen/text/2d.text.draw.fontface.notinpage.worker.js
+++ b/html/canvas/offscreen/text/2d.text.draw.fontface.notinpage.worker.js
@@ -7,7 +7,6 @@
 importScripts("/html/canvas/resources/canvas-tests.js");
 
 promise_test(async t => {
-
   var canvas = new OffscreenCanvas(100, 50);
   var ctx = canvas.getContext('2d');
 
@@ -24,6 +23,5 @@
   _assertPixelApprox(canvas, 95,5, 0,255,0,255, 2);
   _assertPixelApprox(canvas, 25,25, 0,255,0,255, 2);
   _assertPixelApprox(canvas, 75,25, 0,255,0,255, 2);
-  t.done();
 }, "@font-face fonts should work even if they are not used in the page");
 done();
diff --git a/html/canvas/offscreen/text/2d.text.draw.fontface.repeat.worker.js b/html/canvas/offscreen/text/2d.text.draw.fontface.repeat.worker.js
index 7567c09..fb1f798 100644
--- a/html/canvas/offscreen/text/2d.text.draw.fontface.repeat.worker.js
+++ b/html/canvas/offscreen/text/2d.text.draw.fontface.repeat.worker.js
@@ -7,7 +7,6 @@
 importScripts("/html/canvas/resources/canvas-tests.js");
 
 promise_test(async t => {
-
   var canvas = new OffscreenCanvas(100, 50);
   var ctx = canvas.getContext('2d');
 
@@ -27,6 +26,5 @@
   _assertPixelApprox(canvas, 95,5, 0,255,0,255, 2);
   _assertPixelApprox(canvas, 25,25, 0,255,0,255, 2);
   _assertPixelApprox(canvas, 75,25, 0,255,0,255, 2);
-  t.done();
 }, "Draw with the font immediately, then wait a bit until and draw again. (This crashes some version of WebKit.)");
 done();
diff --git a/html/canvas/offscreen/text/2d.text.draw.fontface.worker.js b/html/canvas/offscreen/text/2d.text.draw.fontface.worker.js
index 02257f0..a09a0f8 100644
--- a/html/canvas/offscreen/text/2d.text.draw.fontface.worker.js
+++ b/html/canvas/offscreen/text/2d.text.draw.fontface.worker.js
@@ -7,7 +7,6 @@
 importScripts("/html/canvas/resources/canvas-tests.js");
 
 promise_test(async t => {
-
   var canvas = new OffscreenCanvas(100, 50);
   var ctx = canvas.getContext('2d');
 
@@ -24,6 +23,5 @@
   _assertPixelApprox(canvas, 95,5, 0,255,0,255, 2);
   _assertPixelApprox(canvas, 25,25, 0,255,0,255, 2);
   _assertPixelApprox(canvas, 75,25, 0,255,0,255, 2);
-  t.done();
 }, "");
 done();
diff --git a/html/canvas/offscreen/text/2d.text.draw.space.basic.worker.js b/html/canvas/offscreen/text/2d.text.draw.space.basic.worker.js
index ef09925..96bd415 100644
--- a/html/canvas/offscreen/text/2d.text.draw.space.basic.worker.js
+++ b/html/canvas/offscreen/text/2d.text.draw.space.basic.worker.js
@@ -7,7 +7,6 @@
 importScripts("/html/canvas/resources/canvas-tests.js");
 
 promise_test(async t => {
-
   var canvas = new OffscreenCanvas(100, 50);
   var ctx = canvas.getContext('2d');
 
@@ -22,6 +21,5 @@
   ctx.fillText('E EE', -100, 37.5);
   _assertPixelApprox(canvas, 25,25, 0,255,0,255, 2);
   _assertPixelApprox(canvas, 75,25, 0,255,0,255, 2);
-  t.done();
 }, "U+0020 is rendered the correct size (1em wide)");
 done();
diff --git a/html/canvas/offscreen/text/2d.text.draw.space.collapse.end.worker.js b/html/canvas/offscreen/text/2d.text.draw.space.collapse.end.worker.js
index 9a9afa1..e9cd9dc 100644
--- a/html/canvas/offscreen/text/2d.text.draw.space.collapse.end.worker.js
+++ b/html/canvas/offscreen/text/2d.text.draw.space.collapse.end.worker.js
@@ -7,7 +7,6 @@
 importScripts("/html/canvas/resources/canvas-tests.js");
 
 promise_test(async t => {
-
   var canvas = new OffscreenCanvas(100, 50);
   var ctx = canvas.getContext('2d');
 
@@ -23,6 +22,5 @@
   ctx.fillText('EE ', 100, 37.5);
   _assertPixelApprox(canvas, 25,25, 0,255,0,255, 2);
   _assertPixelApprox(canvas, 75,25, 255,0,0,255, 2);
-  t.done();
 }, "Space characters at the end of a line are NOT collapsed");
 done();
diff --git a/html/canvas/offscreen/text/2d.text.draw.space.collapse.nonspace.worker.js b/html/canvas/offscreen/text/2d.text.draw.space.collapse.nonspace.worker.js
index a12c2f9..a37094e 100644
--- a/html/canvas/offscreen/text/2d.text.draw.space.collapse.nonspace.worker.js
+++ b/html/canvas/offscreen/text/2d.text.draw.space.collapse.nonspace.worker.js
@@ -7,7 +7,6 @@
 importScripts("/html/canvas/resources/canvas-tests.js");
 
 promise_test(async t => {
-
   var canvas = new OffscreenCanvas(100, 50);
   var ctx = canvas.getContext('2d');
 
@@ -22,6 +21,5 @@
   ctx.fillText('E\x0b EE', -150, 37.5);
   _assertPixelApprox(canvas, 25,25, 0,255,0,255, 2);
   _assertPixelApprox(canvas, 75,25, 0,255,0,255, 2);
-  t.done();
 }, "Non-space characters are not converted to U+0020 and collapsed");
 done();
diff --git a/html/canvas/offscreen/text/2d.text.draw.space.collapse.other.worker.js b/html/canvas/offscreen/text/2d.text.draw.space.collapse.other.worker.js
index bbf9e68..1f090cb 100644
--- a/html/canvas/offscreen/text/2d.text.draw.space.collapse.other.worker.js
+++ b/html/canvas/offscreen/text/2d.text.draw.space.collapse.other.worker.js
@@ -7,7 +7,6 @@
 importScripts("/html/canvas/resources/canvas-tests.js");
 
 promise_test(async t => {
-
   var canvas = new OffscreenCanvas(100, 50);
   var ctx = canvas.getContext('2d');
 
@@ -22,6 +21,5 @@
   ctx.fillText('E \x09\x0a\x0c\x0d  \x09\x0a\x0c\x0dEE', 0, 37.5);
   _assertPixelApprox(canvas, 25,25, 0,255,0,255, 2);
   _assertPixelApprox(canvas, 75,25, 255,0,0,255, 2);
-  t.done();
 }, "Space characters are converted to U+0020, and are NOT collapsed");
 done();
diff --git a/html/canvas/offscreen/text/2d.text.draw.space.collapse.space.worker.js b/html/canvas/offscreen/text/2d.text.draw.space.collapse.space.worker.js
index e5ab7b6..02551b7 100644
--- a/html/canvas/offscreen/text/2d.text.draw.space.collapse.space.worker.js
+++ b/html/canvas/offscreen/text/2d.text.draw.space.collapse.space.worker.js
@@ -7,7 +7,6 @@
 importScripts("/html/canvas/resources/canvas-tests.js");
 
 promise_test(async t => {
-
   var canvas = new OffscreenCanvas(100, 50);
   var ctx = canvas.getContext('2d');
 
@@ -22,6 +21,5 @@
   ctx.fillText('E  EE', 0, 37.5);
   _assertPixelApprox(canvas, 25,25, 0,255,0,255, 2);
   _assertPixelApprox(canvas, 75,25, 255,0,0,255, 2);
-  t.done();
 }, "Space characters are converted to U+0020, and are NOT collapsed");
 done();
diff --git a/html/canvas/offscreen/text/2d.text.draw.space.collapse.start.worker.js b/html/canvas/offscreen/text/2d.text.draw.space.collapse.start.worker.js
index 20fec78..bd6e523 100644
--- a/html/canvas/offscreen/text/2d.text.draw.space.collapse.start.worker.js
+++ b/html/canvas/offscreen/text/2d.text.draw.space.collapse.start.worker.js
@@ -7,7 +7,6 @@
 importScripts("/html/canvas/resources/canvas-tests.js");
 
 promise_test(async t => {
-
   var canvas = new OffscreenCanvas(100, 50);
   var ctx = canvas.getContext('2d');
 
@@ -22,6 +21,5 @@
   ctx.fillText(' EE', 0, 37.5);
   _assertPixelApprox(canvas, 25,25, 255,0,0,255, 2);
   _assertPixelApprox(canvas, 75,25, 0,255,0,255, 2);
-  t.done();
 }, "Space characters at the start of a line are NOT collapsed");
 done();
diff --git a/html/canvas/offscreen/text/2d.text.measure.actualBoundingBox.worker.js b/html/canvas/offscreen/text/2d.text.measure.actualBoundingBox.worker.js
index c3d18ff..aaec2e7 100644
--- a/html/canvas/offscreen/text/2d.text.measure.actualBoundingBox.worker.js
+++ b/html/canvas/offscreen/text/2d.text.measure.actualBoundingBox.worker.js
@@ -7,7 +7,6 @@
 importScripts("/html/canvas/resources/canvas-tests.js");
 
 promise_test(async t => {
-
   var canvas = new OffscreenCanvas(100, 50);
   var ctx = canvas.getContext('2d');
 
@@ -41,6 +40,5 @@
   _assert(ctx.measureText('ABCD').actualBoundingBoxRight >= 200, "ctx.measureText('ABCD').actualBoundingBoxRight >= 200");
   _assert(ctx.measureText('ABCD').actualBoundingBoxAscent >= 85, "ctx.measureText('ABCD').actualBoundingBoxAscent >= 85");
   _assert(ctx.measureText('ABCD').actualBoundingBoxDescent >= 37, "ctx.measureText('ABCD').actualBoundingBoxDescent >= 37");
-  t.done();
 }, "Testing actualBoundingBox");
 done();
diff --git a/html/canvas/offscreen/text/2d.text.measure.advances.worker.js b/html/canvas/offscreen/text/2d.text.measure.advances.worker.js
index 4b02f06..3bf2d9f 100644
--- a/html/canvas/offscreen/text/2d.text.measure.advances.worker.js
+++ b/html/canvas/offscreen/text/2d.text.measure.advances.worker.js
@@ -7,7 +7,6 @@
 importScripts("/html/canvas/resources/canvas-tests.js");
 
 promise_test(async t => {
-
   var canvas = new OffscreenCanvas(100, 50);
   var ctx = canvas.getContext('2d');
 
@@ -32,6 +31,5 @@
   _assertSame(ctx.measureText('Hello').advances[2], tm.advances[2], "ctx.measureText('Hello').advances[\""+(2)+"\"]", "tm.advances[\""+(2)+"\"]");
   _assertSame(ctx.measureText('Hello').advances[3], tm.advances[3], "ctx.measureText('Hello').advances[\""+(3)+"\"]", "tm.advances[\""+(3)+"\"]");
   _assertSame(ctx.measureText('Hello').advances[4], tm.advances[4], "ctx.measureText('Hello').advances[\""+(4)+"\"]", "tm.advances[\""+(4)+"\"]");
-  t.done();
 }, "Testing width advances");
 done();
diff --git a/html/canvas/offscreen/text/2d.text.measure.baselines.worker.js b/html/canvas/offscreen/text/2d.text.measure.baselines.worker.js
index ddb48f4..6e7b064 100644
--- a/html/canvas/offscreen/text/2d.text.measure.baselines.worker.js
+++ b/html/canvas/offscreen/text/2d.text.measure.baselines.worker.js
@@ -7,7 +7,6 @@
 importScripts("/html/canvas/resources/canvas-tests.js");
 
 promise_test(async t => {
-
   var canvas = new OffscreenCanvas(100, 50);
   var ctx = canvas.getContext('2d');
 
@@ -25,6 +24,5 @@
   _assertSame(Math.abs(ctx.measureText('ABCD').alphabeticBaseline), 0, "Math.abs(ctx.measureText('ABCD').alphabeticBaseline)", "0");
   _assertSame(ctx.measureText('ABCD').ideographicBaseline, 6.25, "ctx.measureText('ABCD').ideographicBaseline", "6.25");
   _assertSame(ctx.measureText('ABCD').hangingBaseline, 25, "ctx.measureText('ABCD').hangingBaseline", "25");
-  t.done();
 }, "Testing baselines");
 done();
diff --git a/html/canvas/offscreen/text/2d.text.measure.emHeights-low-ascent.worker.js b/html/canvas/offscreen/text/2d.text.measure.emHeights-low-ascent.worker.js
index 09ee787..cbcb5ec 100644
--- a/html/canvas/offscreen/text/2d.text.measure.emHeights-low-ascent.worker.js
+++ b/html/canvas/offscreen/text/2d.text.measure.emHeights-low-ascent.worker.js
@@ -7,7 +7,6 @@
 importScripts("/html/canvas/resources/canvas-tests.js");
 
 promise_test(async t => {
-
   var canvas = new OffscreenCanvas(100, 50);
   var ctx = canvas.getContext('2d');
 
@@ -25,6 +24,5 @@
   _assertSame(ctx.measureText('ABCD').emHeightAscent, 20, "ctx.measureText('ABCD').emHeightAscent", "20");
   _assertSame(ctx.measureText('ABCD').emHeightDescent, 20, "ctx.measureText('ABCD').emHeightDescent", "20");
   _assertSame(ctx.measureText('ABCD').emHeightDescent + ctx.measureText('ABCD').emHeightAscent, 40, "ctx.measureText('ABCD').emHeightDescent + ctx.measureText('ABCD').emHeightAscent", "40");
-  t.done();
 }, "Testing emHeights with reduced ascent metric");
 done();
diff --git a/html/canvas/offscreen/text/2d.text.measure.emHeights-zero-descent.worker.js b/html/canvas/offscreen/text/2d.text.measure.emHeights-zero-descent.worker.js
index a2f0978..4b62bd5 100644
--- a/html/canvas/offscreen/text/2d.text.measure.emHeights-zero-descent.worker.js
+++ b/html/canvas/offscreen/text/2d.text.measure.emHeights-zero-descent.worker.js
@@ -7,7 +7,6 @@
 importScripts("/html/canvas/resources/canvas-tests.js");
 
 promise_test(async t => {
-
   var canvas = new OffscreenCanvas(100, 50);
   var ctx = canvas.getContext('2d');
 
@@ -25,6 +24,5 @@
   _assertSame(ctx.measureText('ABCD').emHeightAscent, 40, "ctx.measureText('ABCD').emHeightAscent", "40");
   _assertSame(ctx.measureText('ABCD').emHeightDescent, 0, "ctx.measureText('ABCD').emHeightDescent", "0");
   _assertSame(ctx.measureText('ABCD').emHeightDescent + ctx.measureText('ABCD').emHeightAscent, 40, "ctx.measureText('ABCD').emHeightDescent + ctx.measureText('ABCD').emHeightAscent", "40");
-  t.done();
 }, "Testing emHeights with zero descent metric");
 done();
diff --git a/html/canvas/offscreen/text/2d.text.measure.emHeights.worker.js b/html/canvas/offscreen/text/2d.text.measure.emHeights.worker.js
index 0385d3d..163394f 100644
--- a/html/canvas/offscreen/text/2d.text.measure.emHeights.worker.js
+++ b/html/canvas/offscreen/text/2d.text.measure.emHeights.worker.js
@@ -7,7 +7,6 @@
 importScripts("/html/canvas/resources/canvas-tests.js");
 
 promise_test(async t => {
-
   var canvas = new OffscreenCanvas(100, 50);
   var ctx = canvas.getContext('2d');
 
@@ -25,6 +24,5 @@
   _assertSame(ctx.measureText('ABCD').emHeightAscent, 30, "ctx.measureText('ABCD').emHeightAscent", "30");
   _assertSame(ctx.measureText('ABCD').emHeightDescent, 10, "ctx.measureText('ABCD').emHeightDescent", "10");
   _assertSame(ctx.measureText('ABCD').emHeightDescent + ctx.measureText('ABCD').emHeightAscent, 40, "ctx.measureText('ABCD').emHeightDescent + ctx.measureText('ABCD').emHeightAscent", "40");
-  t.done();
 }, "Testing emHeights");
 done();
diff --git a/html/canvas/offscreen/text/2d.text.measure.fontBoundingBox-reduced-ascent.worker.js b/html/canvas/offscreen/text/2d.text.measure.fontBoundingBox-reduced-ascent.worker.js
index dea67ff..6ea01b1 100644
--- a/html/canvas/offscreen/text/2d.text.measure.fontBoundingBox-reduced-ascent.worker.js
+++ b/html/canvas/offscreen/text/2d.text.measure.fontBoundingBox-reduced-ascent.worker.js
@@ -7,7 +7,6 @@
 importScripts("/html/canvas/resources/canvas-tests.js");
 
 promise_test(async t => {
-
   var canvas = new OffscreenCanvas(100, 50);
   var ctx = canvas.getContext('2d');
 
@@ -23,6 +22,5 @@
 
   _assertSame(ctx.measureText('ABCD').fontBoundingBoxAscent, 10, "ctx.measureText('ABCD').fontBoundingBoxAscent", "10");
   _assertSame(ctx.measureText('ABCD').fontBoundingBoxDescent, 10, "ctx.measureText('ABCD').fontBoundingBoxDescent", "10");
-  t.done();
 }, "Testing fontBoundingBox for OffscreenCanvas with reduced ascent metric");
 done();
diff --git a/html/canvas/offscreen/text/2d.text.measure.fontBoundingBox-zero-descent.worker.js b/html/canvas/offscreen/text/2d.text.measure.fontBoundingBox-zero-descent.worker.js
index 99a886d..c8175ee 100644
--- a/html/canvas/offscreen/text/2d.text.measure.fontBoundingBox-zero-descent.worker.js
+++ b/html/canvas/offscreen/text/2d.text.measure.fontBoundingBox-zero-descent.worker.js
@@ -7,7 +7,6 @@
 importScripts("/html/canvas/resources/canvas-tests.js");
 
 promise_test(async t => {
-
   var canvas = new OffscreenCanvas(100, 50);
   var ctx = canvas.getContext('2d');
 
@@ -23,6 +22,5 @@
 
   _assertSame(ctx.measureText('ABCD').fontBoundingBoxAscent, 30, "ctx.measureText('ABCD').fontBoundingBoxAscent", "30");
   _assertSame(ctx.measureText('ABCD').fontBoundingBoxDescent, 0, "ctx.measureText('ABCD').fontBoundingBoxDescent", "0");
-  t.done();
 }, "Testing fontBoundingBox for OffscreenCanvas with zero descent metric");
 done();
diff --git a/html/canvas/offscreen/text/2d.text.measure.fontBoundingBox.ahem.worker.js b/html/canvas/offscreen/text/2d.text.measure.fontBoundingBox.ahem.worker.js
index 255bcd1..080a4d4 100644
--- a/html/canvas/offscreen/text/2d.text.measure.fontBoundingBox.ahem.worker.js
+++ b/html/canvas/offscreen/text/2d.text.measure.fontBoundingBox.ahem.worker.js
@@ -7,7 +7,6 @@
 importScripts("/html/canvas/resources/canvas-tests.js");
 
 promise_test(async t => {
-
   var canvas = new OffscreenCanvas(100, 50);
   var ctx = canvas.getContext('2d');
 
@@ -22,6 +21,5 @@
   _assertSame(ctx.measureText('A').fontBoundingBoxDescent, 10, "ctx.measureText('A').fontBoundingBoxDescent", "10");
   _assertSame(ctx.measureText('ABCD').fontBoundingBoxAscent, 40, "ctx.measureText('ABCD').fontBoundingBoxAscent", "40");
   _assertSame(ctx.measureText('ABCD').fontBoundingBoxDescent, 10, "ctx.measureText('ABCD').fontBoundingBoxDescent", "10");
-  t.done();
 }, "Testing fontBoundingBox for font ahem");
 done();
diff --git a/html/canvas/offscreen/text/2d.text.measure.fontBoundingBox.worker.js b/html/canvas/offscreen/text/2d.text.measure.fontBoundingBox.worker.js
index b2cde04..5c28b8f 100644
--- a/html/canvas/offscreen/text/2d.text.measure.fontBoundingBox.worker.js
+++ b/html/canvas/offscreen/text/2d.text.measure.fontBoundingBox.worker.js
@@ -7,7 +7,6 @@
 importScripts("/html/canvas/resources/canvas-tests.js");
 
 promise_test(async t => {
-
   var canvas = new OffscreenCanvas(100, 50);
   var ctx = canvas.getContext('2d');
 
@@ -23,6 +22,5 @@
 
   _assertSame(ctx.measureText('ABCD').fontBoundingBoxAscent, 30, "ctx.measureText('ABCD').fontBoundingBoxAscent", "30");
   _assertSame(ctx.measureText('ABCD').fontBoundingBoxDescent, 10, "ctx.measureText('ABCD').fontBoundingBoxDescent", "10");
-  t.done();
 }, "Testing fontBoundingBox measurements");
 done();
diff --git a/html/canvas/offscreen/text/2d.text.measure.width.basic.worker.js b/html/canvas/offscreen/text/2d.text.measure.width.basic.worker.js
index 866ad8b..f653f20 100644
--- a/html/canvas/offscreen/text/2d.text.measure.width.basic.worker.js
+++ b/html/canvas/offscreen/text/2d.text.measure.width.basic.worker.js
@@ -7,7 +7,6 @@
 importScripts("/html/canvas/resources/canvas-tests.js");
 
 promise_test(async t => {
-
   var canvas = new OffscreenCanvas(100, 50);
   var ctx = canvas.getContext('2d');
 
@@ -22,6 +21,5 @@
 
   ctx.font = '100px CanvasTest';
   _assertSame(ctx.measureText('A').width, 100, "ctx.measureText('A').width", "100");
-  t.done();
 }, "The width of character is same as font used");
 done();
diff --git a/html/canvas/offscreen/text/2d.text.measure.width.empty.worker.js b/html/canvas/offscreen/text/2d.text.measure.width.empty.worker.js
index 6fb89c5..932b82e 100644
--- a/html/canvas/offscreen/text/2d.text.measure.width.empty.worker.js
+++ b/html/canvas/offscreen/text/2d.text.measure.width.empty.worker.js
@@ -7,7 +7,6 @@
 importScripts("/html/canvas/resources/canvas-tests.js");
 
 promise_test(async t => {
-
   var canvas = new OffscreenCanvas(100, 50);
   var ctx = canvas.getContext('2d');
 
@@ -17,6 +16,5 @@
   await self.fonts.ready;
   ctx.font = '50px CanvasTest';
   _assertSame(ctx.measureText("").width, 0, "ctx.measureText(\"\").width", "0");
-  t.done();
 }, "The empty string has zero width");
 done();
diff --git a/html/canvas/offscreen/text/2d.text.measure.width.space.worker.js b/html/canvas/offscreen/text/2d.text.measure.width.space.worker.js
index d832fee..3f0e6d6 100644
--- a/html/canvas/offscreen/text/2d.text.measure.width.space.worker.js
+++ b/html/canvas/offscreen/text/2d.text.measure.width.space.worker.js
@@ -7,7 +7,6 @@
 importScripts("/html/canvas/resources/canvas-tests.js");
 
 promise_test(async t => {
-
   var canvas = new OffscreenCanvas(100, 50);
   var ctx = canvas.getContext('2d');
 
@@ -23,6 +22,5 @@
 
   _assertSame(ctx.measureText(' AB').width, 150, "ctx.measureText(' AB').width", "150");
   _assertSame(ctx.measureText('AB ').width, 150, "ctx.measureText('AB ').width", "150");
-  t.done();
 }, "Space characters are converted to U+0020 and NOT collapsed");
 done();
diff --git a/html/canvas/tools/templates/testharness_worker.js b/html/canvas/tools/templates/testharness_worker.js
index aaf5a55..1dd44ca 100644
--- a/html/canvas/tools/templates/testharness_worker.js
+++ b/html/canvas/tools/templates/testharness_worker.js
@@ -17,19 +17,20 @@
     throw reason;
 });
 t.step(function() {
+
 {% endif %}
 
-{# Test body: #}
+{#- Test body: #}
   var canvas = new OffscreenCanvas({{ size[0] }}, {{ size[1] }});
   var ctx = canvas.getContext('2d'{% if attributes %}, {{ attributes }}{% endif %});
 
   {{ code_worker | trim | indent(2)}}
-  t.done();
 
 {#- Promise vs. async test footer: +#}
 {% if test_type == 'promise' %}
 }, "{{ desc }}");
 {% else %}
+  t.done();
 });
 {% endif %}
 done();