Title: [246390] trunk/LayoutTests
Revision
246390
Author
mmaxfi...@apple.com
Date
2019-06-12 20:44:24 -0700 (Wed, 12 Jun 2019)

Log Message

[WHLSL] Educate the property resolver about IndexExpressions
https://bugs.webkit.org/show_bug.cgi?id=198399

Unreviewed test gardening.

Failing WebGPU tests should fail instead of time out.

* webgpu/blend-color-triangle-strip.html:
* webgpu/blend-triangle-strip.html:
* webgpu/blit-commands.html:
* webgpu/buffer-command-buffer-races.html:
* webgpu/buffer-resource-triangles.html:
* webgpu/color-write-mask-triangle-strip.html:
* webgpu/depth-enabled-triangle-strip.html:
* webgpu/draw-indexed-triangles.html:
* webgpu/propertyresolver/ander-abstract-lvalue.html:
* webgpu/propertyresolver/ander-lvalue-3-levels.html:
* webgpu/propertyresolver/ander-lvalue.html:
* webgpu/propertyresolver/ander.html:
* webgpu/propertyresolver/getter.html:
* webgpu/propertyresolver/indexer-ander-abstract-lvalue.html:
* webgpu/propertyresolver/indexer-ander-lvalue-3-levels.html:
* webgpu/propertyresolver/indexer-ander-lvalue.html:
* webgpu/propertyresolver/indexer-ander.html:
* webgpu/propertyresolver/indexer-getter.html:
* webgpu/propertyresolver/indexer-setter-abstract-lvalue-3-levels.html:
* webgpu/propertyresolver/indexer-setter-abstract-lvalue.html:
* webgpu/propertyresolver/indexer-setter-lvalue.html:
* webgpu/propertyresolver/indexer-setter.html:
* webgpu/propertyresolver/setter-abstract-lvalue-3-levels.html:
* webgpu/propertyresolver/setter-abstract-lvalue.html:
* webgpu/propertyresolver/setter-lvalue.html:
* webgpu/simple-triangle-strip.html:
* webgpu/texture-triangle-strip.html:
* webgpu/vertex-buffer-triangle-strip.html:
* webgpu/viewport-scissor-rect-triangle-strip.html:
* webgpu/whlsl-arbitrary-vertex-attribute-locations.html:
* webgpu/whlsl-dereference-pointer-should-type-check.html:
* webgpu/whlsl-do-while-loop-break.html:
* webgpu/whlsl-do-while-loop-continue.html:
* webgpu/whlsl-do-while-loop.html:
* webgpu/whlsl-dont-crash-parsing-enum.html:
* webgpu/whlsl-dot-expressions.html:
* webgpu/whlsl-ensure-proper-variable-lifetime-2.html:
* webgpu/whlsl-ensure-proper-variable-lifetime-3.html:
* webgpu/whlsl-ensure-proper-variable-lifetime.html:
* webgpu/whlsl-loops-break.html:
* webgpu/whlsl-loops-continue.html:
* webgpu/whlsl-loops.html:
* webgpu/whlsl-nested-dot-_expression_-rvalue.html:
* webgpu/whlsl-nested-loop.html:
* webgpu/whlsl-return-local-variable.html:
* webgpu/whlsl-store-to-property-updates-properly.html:
* webgpu/whlsl-while-loop-break.html:
* webgpu/whlsl-while-loop-continue.html:
* webgpu/whlsl-zero-initialize-values-2.html:
* webgpu/whlsl-zero-initialize-values.html:
* webgpu/whlsl.html:

Modified Paths

Diff

Modified: trunk/LayoutTests/ChangeLog (246389 => 246390)


--- trunk/LayoutTests/ChangeLog	2019-06-13 03:21:36 UTC (rev 246389)
+++ trunk/LayoutTests/ChangeLog	2019-06-13 03:44:24 UTC (rev 246390)
@@ -1,3 +1,64 @@
+2019-06-12  Myles C. Maxfield  <mmaxfi...@apple.com>
+
+        [WHLSL] Educate the property resolver about IndexExpressions
+        https://bugs.webkit.org/show_bug.cgi?id=198399
+
+        Unreviewed test gardening.
+
+        Failing WebGPU tests should fail instead of time out.
+
+        * webgpu/blend-color-triangle-strip.html:
+        * webgpu/blend-triangle-strip.html:
+        * webgpu/blit-commands.html:
+        * webgpu/buffer-command-buffer-races.html:
+        * webgpu/buffer-resource-triangles.html:
+        * webgpu/color-write-mask-triangle-strip.html:
+        * webgpu/depth-enabled-triangle-strip.html:
+        * webgpu/draw-indexed-triangles.html:
+        * webgpu/propertyresolver/ander-abstract-lvalue.html:
+        * webgpu/propertyresolver/ander-lvalue-3-levels.html:
+        * webgpu/propertyresolver/ander-lvalue.html:
+        * webgpu/propertyresolver/ander.html:
+        * webgpu/propertyresolver/getter.html:
+        * webgpu/propertyresolver/indexer-ander-abstract-lvalue.html:
+        * webgpu/propertyresolver/indexer-ander-lvalue-3-levels.html:
+        * webgpu/propertyresolver/indexer-ander-lvalue.html:
+        * webgpu/propertyresolver/indexer-ander.html:
+        * webgpu/propertyresolver/indexer-getter.html:
+        * webgpu/propertyresolver/indexer-setter-abstract-lvalue-3-levels.html:
+        * webgpu/propertyresolver/indexer-setter-abstract-lvalue.html:
+        * webgpu/propertyresolver/indexer-setter-lvalue.html:
+        * webgpu/propertyresolver/indexer-setter.html:
+        * webgpu/propertyresolver/setter-abstract-lvalue-3-levels.html:
+        * webgpu/propertyresolver/setter-abstract-lvalue.html:
+        * webgpu/propertyresolver/setter-lvalue.html:
+        * webgpu/simple-triangle-strip.html:
+        * webgpu/texture-triangle-strip.html:
+        * webgpu/vertex-buffer-triangle-strip.html:
+        * webgpu/viewport-scissor-rect-triangle-strip.html:
+        * webgpu/whlsl-arbitrary-vertex-attribute-locations.html:
+        * webgpu/whlsl-dereference-pointer-should-type-check.html:
+        * webgpu/whlsl-do-while-loop-break.html:
+        * webgpu/whlsl-do-while-loop-continue.html:
+        * webgpu/whlsl-do-while-loop.html:
+        * webgpu/whlsl-dont-crash-parsing-enum.html:
+        * webgpu/whlsl-dot-expressions.html:
+        * webgpu/whlsl-ensure-proper-variable-lifetime-2.html:
+        * webgpu/whlsl-ensure-proper-variable-lifetime-3.html:
+        * webgpu/whlsl-ensure-proper-variable-lifetime.html:
+        * webgpu/whlsl-loops-break.html:
+        * webgpu/whlsl-loops-continue.html:
+        * webgpu/whlsl-loops.html:
+        * webgpu/whlsl-nested-dot-_expression_-rvalue.html:
+        * webgpu/whlsl-nested-loop.html:
+        * webgpu/whlsl-return-local-variable.html:
+        * webgpu/whlsl-store-to-property-updates-properly.html:
+        * webgpu/whlsl-while-loop-break.html:
+        * webgpu/whlsl-while-loop-continue.html:
+        * webgpu/whlsl-zero-initialize-values-2.html:
+        * webgpu/whlsl-zero-initialize-values.html:
+        * webgpu/whlsl.html:
+
 2019-06-12  Simon Fraser  <simon.fra...@apple.com>
 
         paddingBoxRect() is wrong with RTL scrollbars on the left

Modified: trunk/LayoutTests/webgpu/blend-color-triangle-strip.html (246389 => 246390)


--- trunk/LayoutTests/webgpu/blend-color-triangle-strip.html	2019-06-13 03:21:36 UTC (rev 246389)
+++ trunk/LayoutTests/webgpu/blend-color-triangle-strip.html	2019-06-13 03:44:24 UTC (rev 246390)
@@ -75,12 +75,13 @@
     const queue = device.getQueue();
 
     queue.submit([commandEncoder.finish()]);
-
-    requestAnimationFrame(() => { 
-        if (window.testRunner)
-            testRunner.notifyDone();
-    });
 }
 
-test();
-</script>
\ No newline at end of file
+test().then(function() {
+    if (window.testRunner)
+        testRunner.notifyDone();
+}, function() {
+    if (window.testRunner)
+        testRunner.notifyDone();
+});
+</script>

Modified: trunk/LayoutTests/webgpu/blend-triangle-strip.html (246389 => 246390)


--- trunk/LayoutTests/webgpu/blend-triangle-strip.html	2019-06-13 03:21:36 UTC (rev 246389)
+++ trunk/LayoutTests/webgpu/blend-triangle-strip.html	2019-06-13 03:44:24 UTC (rev 246390)
@@ -42,8 +42,6 @@
 }
 `;
 
-window.addEventListener("load", test, false);
-
 async function test() {
     const device = await getBasicDevice();
     const canvas = document.querySelector("canvas");
@@ -95,10 +93,15 @@
     passEncoder.endPass();
 
     device.getQueue().submit([commandEncoder.finish()]);
+}
 
-    requestAnimationFrame(() => { 
+window.addEventListener("load", function() {
+    test().then(function() {
         if (window.testRunner)
             testRunner.notifyDone();
+    }, function() {
+        if (window.testRunner)
+            testRunner.notifyDone();
     });
-}
-</script>
\ No newline at end of file
+}, false);
+</script>

Modified: trunk/LayoutTests/webgpu/blit-commands.html (246389 => 246390)


--- trunk/LayoutTests/webgpu/blit-commands.html	2019-06-13 03:21:36 UTC (rev 246389)
+++ trunk/LayoutTests/webgpu/blit-commands.html	2019-06-13 03:44:24 UTC (rev 246390)
@@ -14,7 +14,15 @@
 async function loadImage() {
     const image = new Image();
     image.src = ""
-    image._onload_ = () => { test(image); }
+    image._onload_ = function() {
+        test(image).then(function() {
+            if (window.testRunner)
+                testRunner.notifyDone();
+        }, function() {
+            if (window.testRunner)
+                testRunner.notifyDone();
+        });
+    }
 }
 
 async function test(image) {
@@ -91,11 +99,8 @@
 
         readBuffer.destroy();
     });
-
-    if (window.testRunner)
-        testRunner.notifyDone();
 }
 
 loadImage();
 </script>
-</body>
\ No newline at end of file
+</body>

Modified: trunk/LayoutTests/webgpu/buffer-command-buffer-races.html (246389 => 246390)


--- trunk/LayoutTests/webgpu/buffer-command-buffer-races.html	2019-06-13 03:21:36 UTC (rev 246389)
+++ trunk/LayoutTests/webgpu/buffer-command-buffer-races.html	2019-06-13 03:44:24 UTC (rev 246390)
@@ -139,10 +139,13 @@
     upperLeftBuffer.destroy();
     middleBuffer.destroy();
     upperRightBuffer.destroy();
+}
 
+test().then(function() {
     if (window.testRunner)
         testRunner.notifyDone();
-}
-
-test();
-</script>
\ No newline at end of file
+}, function() {
+    if (window.testRunner)
+        testRunner.notifyDone();
+});
+</script>

Modified: trunk/LayoutTests/webgpu/buffer-resource-triangles.html (246389 => 246390)


--- trunk/LayoutTests/webgpu/buffer-resource-triangles.html	2019-06-13 03:21:36 UTC (rev 246389)
+++ trunk/LayoutTests/webgpu/buffer-resource-triangles.html	2019-06-13 03:44:24 UTC (rev 246390)
@@ -196,11 +196,14 @@
         passEncoder.endPass();
         const queue = device.getQueue();
         queue.submit([commandEncoder.finish()]);
-
-        if (window.testRunner)
-            testRunner.notifyDone();
     });
 }
 
-test();
-</script>
\ No newline at end of file
+test().then(function() {
+    if (window.testRunner)
+        testRunner.notifyDone();
+}, function() {
+    if (window.testRunner)
+        testRunner.notifyDone();
+});
+</script>

Modified: trunk/LayoutTests/webgpu/color-write-mask-triangle-strip.html (246389 => 246390)


--- trunk/LayoutTests/webgpu/color-write-mask-triangle-strip.html	2019-06-13 03:21:36 UTC (rev 246389)
+++ trunk/LayoutTests/webgpu/color-write-mask-triangle-strip.html	2019-06-13 03:44:24 UTC (rev 246390)
@@ -69,12 +69,13 @@
     const queue = device.getQueue();
 
     queue.submit([commandEncoder.finish()]);
-
-    requestAnimationFrame(() => { 
-        if (window.testRunner)
-            testRunner.notifyDone();
-    });
 }
 
-test();
-</script>
\ No newline at end of file
+test().then(function() {
+    if (window.testRunner)
+        testRunner.notifyDone();
+}, function() {
+    if (window.testRunner)
+        testRunner.notifyDone();
+});
+</script>

Modified: trunk/LayoutTests/webgpu/depth-enabled-triangle-strip.html (246389 => 246390)


--- trunk/LayoutTests/webgpu/depth-enabled-triangle-strip.html	2019-06-13 03:21:36 UTC (rev 246389)
+++ trunk/LayoutTests/webgpu/depth-enabled-triangle-strip.html	2019-06-13 03:44:24 UTC (rev 246390)
@@ -108,10 +108,13 @@
     encoder.endPass();
 
     device.getQueue().submit([commandEncoder.finish()]);
+}
 
+test().then(function() {
     if (window.testRunner)
         testRunner.notifyDone();
-}
-
-test();
-</script>
\ No newline at end of file
+}, function() {
+    if (window.testRunner)
+        testRunner.notifyDone();
+});
+</script>

Modified: trunk/LayoutTests/webgpu/draw-indexed-triangles.html (246389 => 246390)


--- trunk/LayoutTests/webgpu/draw-indexed-triangles.html	2019-06-13 03:21:36 UTC (rev 246389)
+++ trunk/LayoutTests/webgpu/draw-indexed-triangles.html	2019-06-13 03:44:24 UTC (rev 246390)
@@ -112,10 +112,13 @@
 
     device.getQueue().submit([commandEncoder.finish()]);
     vertexBuffer.destroy();
+}
 
+test().then(function() {
     if (window.testRunner)
         testRunner.notifyDone();
-}
-
-test();
-</script>
\ No newline at end of file
+}, function() {
+    if (window.testRunner)
+        testRunner.notifyDone();
+});
+</script>

Modified: trunk/LayoutTests/webgpu/propertyresolver/ander-abstract-lvalue.html (246389 => 246390)


--- trunk/LayoutTests/webgpu/propertyresolver/ander-abstract-lvalue.html	2019-06-13 03:21:36 UTC (rev 246389)
+++ trunk/LayoutTests/webgpu/propertyresolver/ander-abstract-lvalue.html	2019-06-13 03:44:24 UTC (rev 246390)
@@ -103,13 +103,18 @@
     renderPassEncoder.endPass();
     const commandBuffer = commandEncoder.finish();
     device.getQueue().submit([commandBuffer]);
-
-    if (window.testRunner)
-        testRunner.notifyDone();
 }
 if (window.testRunner)
     testRunner.waitUntilDone();
-window.addEventListener("load", start);
+window.addEventListener("load", function() {
+    start().then(function() {
+        if (window.testRunner)
+            testRunner.notifyDone();
+    }, function() {
+        if (window.testRunner)
+            testRunner.notifyDone();
+    });
+});
 </script>
 </body>
 </html>

Modified: trunk/LayoutTests/webgpu/propertyresolver/ander-lvalue-3-levels.html (246389 => 246390)


--- trunk/LayoutTests/webgpu/propertyresolver/ander-lvalue-3-levels.html	2019-06-13 03:21:36 UTC (rev 246389)
+++ trunk/LayoutTests/webgpu/propertyresolver/ander-lvalue-3-levels.html	2019-06-13 03:44:24 UTC (rev 246390)
@@ -106,13 +106,18 @@
     renderPassEncoder.endPass();
     const commandBuffer = commandEncoder.finish();
     device.getQueue().submit([commandBuffer]);
-
-    if (window.testRunner)
-        testRunner.notifyDone();
 }
 if (window.testRunner)
     testRunner.waitUntilDone();
-window.addEventListener("load", start);
+window.addEventListener("load", function() {
+    start().then(function() {
+        if (window.testRunner)
+            testRunner.notifyDone();
+    }, function() {
+        if (window.testRunner)
+            testRunner.notifyDone();
+    });
+});
 </script>
 </body>
 </html>

Modified: trunk/LayoutTests/webgpu/propertyresolver/ander-lvalue.html (246389 => 246390)


--- trunk/LayoutTests/webgpu/propertyresolver/ander-lvalue.html	2019-06-13 03:21:36 UTC (rev 246389)
+++ trunk/LayoutTests/webgpu/propertyresolver/ander-lvalue.html	2019-06-13 03:44:24 UTC (rev 246390)
@@ -98,13 +98,18 @@
     renderPassEncoder.endPass();
     const commandBuffer = commandEncoder.finish();
     device.getQueue().submit([commandBuffer]);
-
-    if (window.testRunner)
-        testRunner.notifyDone();
 }
 if (window.testRunner)
     testRunner.waitUntilDone();
-window.addEventListener("load", start);
+window.addEventListener("load", function() {
+    start().then(function() {
+        if (window.testRunner)
+            testRunner.notifyDone();
+    }, function() {
+        if (window.testRunner)
+            testRunner.notifyDone();
+    });
+});
 </script>
 </body>
 </html>

Modified: trunk/LayoutTests/webgpu/propertyresolver/ander.html (246389 => 246390)


--- trunk/LayoutTests/webgpu/propertyresolver/ander.html	2019-06-13 03:21:36 UTC (rev 246389)
+++ trunk/LayoutTests/webgpu/propertyresolver/ander.html	2019-06-13 03:44:24 UTC (rev 246390)
@@ -94,13 +94,18 @@
     renderPassEncoder.endPass();
     const commandBuffer = commandEncoder.finish();
     device.getQueue().submit([commandBuffer]);
-
-    if (window.testRunner)
-        testRunner.notifyDone();
 }
 if (window.testRunner)
     testRunner.waitUntilDone();
-window.addEventListener("load", start);
+window.addEventListener("load", function() {
+    start().then(function() {
+        if (window.testRunner)
+            testRunner.notifyDone();
+    }, function() {
+        if (window.testRunner)
+            testRunner.notifyDone();
+    });
+});
 </script>
 </body>
 </html>

Modified: trunk/LayoutTests/webgpu/propertyresolver/getter.html (246389 => 246390)


--- trunk/LayoutTests/webgpu/propertyresolver/getter.html	2019-06-13 03:21:36 UTC (rev 246389)
+++ trunk/LayoutTests/webgpu/propertyresolver/getter.html	2019-06-13 03:44:24 UTC (rev 246390)
@@ -90,13 +90,18 @@
     renderPassEncoder.endPass();
     const commandBuffer = commandEncoder.finish();
     device.getQueue().submit([commandBuffer]);
-
-    if (window.testRunner)
-        testRunner.notifyDone();
 }
 if (window.testRunner)
     testRunner.waitUntilDone();
-window.addEventListener("load", start);
+window.addEventListener("load", function() {
+    start().then(function() {
+        if (window.testRunner)
+            testRunner.notifyDone();
+    }, function() {
+        if (window.testRunner)
+            testRunner.notifyDone();
+    });
+});
 </script>
 </body>
 </html>

Modified: trunk/LayoutTests/webgpu/propertyresolver/indexer-ander-abstract-lvalue.html (246389 => 246390)


--- trunk/LayoutTests/webgpu/propertyresolver/indexer-ander-abstract-lvalue.html	2019-06-13 03:21:36 UTC (rev 246389)
+++ trunk/LayoutTests/webgpu/propertyresolver/indexer-ander-abstract-lvalue.html	2019-06-13 03:44:24 UTC (rev 246390)
@@ -103,13 +103,18 @@
     renderPassEncoder.endPass();
     const commandBuffer = commandEncoder.finish();
     device.getQueue().submit([commandBuffer]);
-
-    if (window.testRunner)
-        testRunner.notifyDone();
 }
 if (window.testRunner)
     testRunner.waitUntilDone();
-window.addEventListener("load", start);
+window.addEventListener("load", function() {
+    start().then(function() {
+        if (window.testRunner)
+            testRunner.notifyDone();
+    }, function() {
+        if (window.testRunner)
+            testRunner.notifyDone();
+    });
+});
 </script>
 </body>
 </html>

Modified: trunk/LayoutTests/webgpu/propertyresolver/indexer-ander-lvalue-3-levels.html (246389 => 246390)


--- trunk/LayoutTests/webgpu/propertyresolver/indexer-ander-lvalue-3-levels.html	2019-06-13 03:21:36 UTC (rev 246389)
+++ trunk/LayoutTests/webgpu/propertyresolver/indexer-ander-lvalue-3-levels.html	2019-06-13 03:44:24 UTC (rev 246390)
@@ -106,13 +106,18 @@
     renderPassEncoder.endPass();
     const commandBuffer = commandEncoder.finish();
     device.getQueue().submit([commandBuffer]);
-
-    if (window.testRunner)
-        testRunner.notifyDone();
 }
 if (window.testRunner)
     testRunner.waitUntilDone();
-window.addEventListener("load", start);
+window.addEventListener("load", function() {
+    start().then(function() {
+        if (window.testRunner)
+            testRunner.notifyDone();
+    }, function() {
+        if (window.testRunner)
+            testRunner.notifyDone();
+    });
+});
 </script>
 </body>
 </html>

Modified: trunk/LayoutTests/webgpu/propertyresolver/indexer-ander-lvalue.html (246389 => 246390)


--- trunk/LayoutTests/webgpu/propertyresolver/indexer-ander-lvalue.html	2019-06-13 03:21:36 UTC (rev 246389)
+++ trunk/LayoutTests/webgpu/propertyresolver/indexer-ander-lvalue.html	2019-06-13 03:44:24 UTC (rev 246390)
@@ -98,13 +98,18 @@
     renderPassEncoder.endPass();
     const commandBuffer = commandEncoder.finish();
     device.getQueue().submit([commandBuffer]);
-
-    if (window.testRunner)
-        testRunner.notifyDone();
 }
 if (window.testRunner)
     testRunner.waitUntilDone();
-window.addEventListener("load", start);
+window.addEventListener("load", function() {
+    start().then(function() {
+        if (window.testRunner)
+            testRunner.notifyDone();
+    }, function() {
+        if (window.testRunner)
+            testRunner.notifyDone();
+    });
+});
 </script>
 </body>
 </html>

Modified: trunk/LayoutTests/webgpu/propertyresolver/indexer-ander.html (246389 => 246390)


--- trunk/LayoutTests/webgpu/propertyresolver/indexer-ander.html	2019-06-13 03:21:36 UTC (rev 246389)
+++ trunk/LayoutTests/webgpu/propertyresolver/indexer-ander.html	2019-06-13 03:44:24 UTC (rev 246390)
@@ -94,13 +94,18 @@
     renderPassEncoder.endPass();
     const commandBuffer = commandEncoder.finish();
     device.getQueue().submit([commandBuffer]);
-
-    if (window.testRunner)
-        testRunner.notifyDone();
 }
 if (window.testRunner)
     testRunner.waitUntilDone();
-window.addEventListener("load", start);
+window.addEventListener("load", function() {
+    start().then(function() {
+        if (window.testRunner)
+            testRunner.notifyDone();
+    }, function() {
+        if (window.testRunner)
+            testRunner.notifyDone();
+    });
+});
 </script>
 </body>
 </html>

Modified: trunk/LayoutTests/webgpu/propertyresolver/indexer-getter.html (246389 => 246390)


--- trunk/LayoutTests/webgpu/propertyresolver/indexer-getter.html	2019-06-13 03:21:36 UTC (rev 246389)
+++ trunk/LayoutTests/webgpu/propertyresolver/indexer-getter.html	2019-06-13 03:44:24 UTC (rev 246390)
@@ -89,13 +89,18 @@
     renderPassEncoder.endPass();
     const commandBuffer = commandEncoder.finish();
     device.getQueue().submit([commandBuffer]);
-
-    if (window.testRunner)
-        testRunner.notifyDone();
 }
 if (window.testRunner)
     testRunner.waitUntilDone();
-window.addEventListener("load", start);
+window.addEventListener("load", function() {
+    start().then(function() {
+        if (window.testRunner)
+            testRunner.notifyDone();
+    }, function() {
+        if (window.testRunner)
+            testRunner.notifyDone();
+    });
+});
 </script>
 </body>
 </html>

Modified: trunk/LayoutTests/webgpu/propertyresolver/indexer-setter-abstract-lvalue-3-levels.html (246389 => 246390)


--- trunk/LayoutTests/webgpu/propertyresolver/indexer-setter-abstract-lvalue-3-levels.html	2019-06-13 03:21:36 UTC (rev 246389)
+++ trunk/LayoutTests/webgpu/propertyresolver/indexer-setter-abstract-lvalue-3-levels.html	2019-06-13 03:44:24 UTC (rev 246390)
@@ -121,13 +121,18 @@
     renderPassEncoder.endPass();
     const commandBuffer = commandEncoder.finish();
     device.getQueue().submit([commandBuffer]);
-
-    if (window.testRunner)
-        testRunner.notifyDone();
 }
 if (window.testRunner)
     testRunner.waitUntilDone();
-window.addEventListener("load", start);
+window.addEventListener("load", function() {
+    start().then(function() {
+        if (window.testRunner)
+            testRunner.notifyDone();
+    }, function() {
+        if (window.testRunner)
+            testRunner.notifyDone();
+    });
+});
 </script>
 </body>
 </html>

Modified: trunk/LayoutTests/webgpu/propertyresolver/indexer-setter-abstract-lvalue.html (246389 => 246390)


--- trunk/LayoutTests/webgpu/propertyresolver/indexer-setter-abstract-lvalue.html	2019-06-13 03:21:36 UTC (rev 246389)
+++ trunk/LayoutTests/webgpu/propertyresolver/indexer-setter-abstract-lvalue.html	2019-06-13 03:44:24 UTC (rev 246390)
@@ -108,13 +108,18 @@
     renderPassEncoder.endPass();
     const commandBuffer = commandEncoder.finish();
     device.getQueue().submit([commandBuffer]);
-
-    if (window.testRunner)
-        testRunner.notifyDone();
 }
 if (window.testRunner)
     testRunner.waitUntilDone();
-window.addEventListener("load", start);
+window.addEventListener("load", function() {
+    start().then(function() {
+        if (window.testRunner)
+            testRunner.notifyDone();
+    }, function() {
+        if (window.testRunner)
+            testRunner.notifyDone();
+    });
+});
 </script>
 </body>
 </html>

Modified: trunk/LayoutTests/webgpu/propertyresolver/indexer-setter-lvalue.html (246389 => 246390)


--- trunk/LayoutTests/webgpu/propertyresolver/indexer-setter-lvalue.html	2019-06-13 03:21:36 UTC (rev 246389)
+++ trunk/LayoutTests/webgpu/propertyresolver/indexer-setter-lvalue.html	2019-06-13 03:44:24 UTC (rev 246390)
@@ -103,13 +103,18 @@
     renderPassEncoder.endPass();
     const commandBuffer = commandEncoder.finish();
     device.getQueue().submit([commandBuffer]);
-
-    if (window.testRunner)
-        testRunner.notifyDone();
 }
 if (window.testRunner)
     testRunner.waitUntilDone();
-window.addEventListener("load", start);
+window.addEventListener("load", function() {
+    start().then(function() {
+        if (window.testRunner)
+            testRunner.notifyDone();
+    }, function() {
+        if (window.testRunner)
+            testRunner.notifyDone();
+    });
+});
 </script>
 </body>
 </html>

Modified: trunk/LayoutTests/webgpu/propertyresolver/indexer-setter.html (246389 => 246390)


--- trunk/LayoutTests/webgpu/propertyresolver/indexer-setter.html	2019-06-13 03:21:36 UTC (rev 246389)
+++ trunk/LayoutTests/webgpu/propertyresolver/indexer-setter.html	2019-06-13 03:44:24 UTC (rev 246390)
@@ -106,13 +106,18 @@
     renderPassEncoder.endPass();
     const commandBuffer = commandEncoder.finish();
     device.getQueue().submit([commandBuffer]);
-
-    if (window.testRunner)
-        testRunner.notifyDone();
 }
 if (window.testRunner)
     testRunner.waitUntilDone();
-window.addEventListener("load", start);
+window.addEventListener("load", function() {
+    start().then(function() {
+        if (window.testRunner)
+            testRunner.notifyDone();
+    }, function() {
+        if (window.testRunner)
+            testRunner.notifyDone();
+    });
+});
 </script>
 </body>
 </html>

Modified: trunk/LayoutTests/webgpu/propertyresolver/setter-abstract-lvalue-3-levels.html (246389 => 246390)


--- trunk/LayoutTests/webgpu/propertyresolver/setter-abstract-lvalue-3-levels.html	2019-06-13 03:21:36 UTC (rev 246389)
+++ trunk/LayoutTests/webgpu/propertyresolver/setter-abstract-lvalue-3-levels.html	2019-06-13 03:44:24 UTC (rev 246390)
@@ -121,13 +121,18 @@
     renderPassEncoder.endPass();
     const commandBuffer = commandEncoder.finish();
     device.getQueue().submit([commandBuffer]);
-
-    if (window.testRunner)
-        testRunner.notifyDone();
 }
 if (window.testRunner)
     testRunner.waitUntilDone();
-window.addEventListener("load", start);
+window.addEventListener("load", function() {
+    start().then(function() {
+        if (window.testRunner)
+            testRunner.notifyDone();
+    }, function() {
+        if (window.testRunner)
+            testRunner.notifyDone();
+    });
+});
 </script>
 </body>
 </html>

Modified: trunk/LayoutTests/webgpu/propertyresolver/setter-abstract-lvalue.html (246389 => 246390)


--- trunk/LayoutTests/webgpu/propertyresolver/setter-abstract-lvalue.html	2019-06-13 03:21:36 UTC (rev 246389)
+++ trunk/LayoutTests/webgpu/propertyresolver/setter-abstract-lvalue.html	2019-06-13 03:44:24 UTC (rev 246390)
@@ -108,13 +108,18 @@
     renderPassEncoder.endPass();
     const commandBuffer = commandEncoder.finish();
     device.getQueue().submit([commandBuffer]);
-
-    if (window.testRunner)
-        testRunner.notifyDone();
 }
 if (window.testRunner)
     testRunner.waitUntilDone();
-window.addEventListener("load", start);
+window.addEventListener("load", function() {
+    start().then(function() {
+        if (window.testRunner)
+            testRunner.notifyDone();
+    }, function() {
+        if (window.testRunner)
+            testRunner.notifyDone();
+    });
+});
 </script>
 </body>
 </html>

Modified: trunk/LayoutTests/webgpu/propertyresolver/setter-lvalue.html (246389 => 246390)


--- trunk/LayoutTests/webgpu/propertyresolver/setter-lvalue.html	2019-06-13 03:21:36 UTC (rev 246389)
+++ trunk/LayoutTests/webgpu/propertyresolver/setter-lvalue.html	2019-06-13 03:44:24 UTC (rev 246390)
@@ -103,13 +103,18 @@
     renderPassEncoder.endPass();
     const commandBuffer = commandEncoder.finish();
     device.getQueue().submit([commandBuffer]);
-
-    if (window.testRunner)
-        testRunner.notifyDone();
 }
 if (window.testRunner)
     testRunner.waitUntilDone();
-window.addEventListener("load", start);
+window.addEventListener("load", function() {
+    start().then(function() {
+        if (window.testRunner)
+            testRunner.notifyDone();
+    }, function() {
+        if (window.testRunner)
+            testRunner.notifyDone();
+    });
+});
 </script>
 </body>
 </html>

Modified: trunk/LayoutTests/webgpu/simple-triangle-strip.html (246389 => 246390)


--- trunk/LayoutTests/webgpu/simple-triangle-strip.html	2019-06-13 03:21:36 UTC (rev 246389)
+++ trunk/LayoutTests/webgpu/simple-triangle-strip.html	2019-06-13 03:44:24 UTC (rev 246390)
@@ -58,12 +58,13 @@
     const queue = device.getQueue();
 
     queue.submit([commandEncoder.finish()]);
-
-    requestAnimationFrame(() => { 
-        if (window.testRunner)
-            testRunner.notifyDone();
-    });
 }
 
-test();
-</script>
\ No newline at end of file
+test().then(function() {
+    if (window.testRunner)
+        testRunner.notifyDone();
+}, function() {
+    if (window.testRunner)
+        testRunner.notifyDone();
+});
+</script>

Modified: trunk/LayoutTests/webgpu/texture-triangle-strip.html (246389 => 246390)


--- trunk/LayoutTests/webgpu/texture-triangle-strip.html	2019-06-13 03:21:36 UTC (rev 246389)
+++ trunk/LayoutTests/webgpu/texture-triangle-strip.html	2019-06-13 03:44:24 UTC (rev 246390)
@@ -194,10 +194,13 @@
     positionBuffer.destroy();
     textureCoordBuffer.destroy();
     texture.destroy();
+}
 
+test().then(function() {
     if (window.testRunner)
         testRunner.notifyDone();
-}
-
-test();
-</script>
\ No newline at end of file
+}, function() {
+    if (window.testRunner)
+        testRunner.notifyDone();
+});
+</script>

Modified: trunk/LayoutTests/webgpu/vertex-buffer-triangle-strip.html (246389 => 246390)


--- trunk/LayoutTests/webgpu/vertex-buffer-triangle-strip.html	2019-06-13 03:21:36 UTC (rev 246389)
+++ trunk/LayoutTests/webgpu/vertex-buffer-triangle-strip.html	2019-06-13 03:44:24 UTC (rev 246390)
@@ -91,10 +91,13 @@
     const queue = device.getQueue();
     queue.submit([commandEncoder.finish()]);
     vertexBuffer.destroy();
+}
 
+test().then(function() {
     if (window.testRunner)
         testRunner.notifyDone();
-}
-
-test();
-</script>
\ No newline at end of file
+}, function() {
+    if (window.testRunner)
+        testRunner.notifyDone();
+});
+</script>

Modified: trunk/LayoutTests/webgpu/viewport-scissor-rect-triangle-strip.html (246389 => 246390)


--- trunk/LayoutTests/webgpu/viewport-scissor-rect-triangle-strip.html	2019-06-13 03:21:36 UTC (rev 246389)
+++ trunk/LayoutTests/webgpu/viewport-scissor-rect-triangle-strip.html	2019-06-13 03:44:24 UTC (rev 246390)
@@ -94,12 +94,13 @@
     const queue = device.getQueue();
 
     queue.submit([commandEncoder.finish()]);
-
-    requestAnimationFrame(() => { 
-        if (window.testRunner)
-            testRunner.notifyDone();
-    });
 }
 
-test();
-</script>
\ No newline at end of file
+test().then(function() {
+    if (window.testRunner)
+        testRunner.notifyDone();
+}, function() {
+    if (window.testRunner)
+        testRunner.notifyDone();
+});
+</script>

Modified: trunk/LayoutTests/webgpu/whlsl-arbitrary-vertex-attribute-locations.html (246389 => 246390)


--- trunk/LayoutTests/webgpu/whlsl-arbitrary-vertex-attribute-locations.html	2019-06-13 03:21:36 UTC (rev 246389)
+++ trunk/LayoutTests/webgpu/whlsl-arbitrary-vertex-attribute-locations.html	2019-06-13 03:44:24 UTC (rev 246390)
@@ -111,13 +111,18 @@
     renderPassEncoder.endPass();
     const commandBuffer = commandEncoder.finish();
     device.getQueue().submit([commandBuffer]);
-
-    if (window.testRunner)
-        testRunner.notifyDone();
 }
 if (window.testRunner)
     testRunner.waitUntilDone();
-window.addEventListener("load", start);
+window.addEventListener("load", function() {
+    start().then(function() {
+        if (window.testRunner)
+            testRunner.notifyDone();
+    }, function() {
+        if (window.testRunner)
+            testRunner.notifyDone();
+    });
+});
 </script>
 </body>
 </html>

Modified: trunk/LayoutTests/webgpu/whlsl-dereference-pointer-should-type-check.html (246389 => 246390)


--- trunk/LayoutTests/webgpu/whlsl-dereference-pointer-should-type-check.html	2019-06-13 03:21:36 UTC (rev 246389)
+++ trunk/LayoutTests/webgpu/whlsl-dereference-pointer-should-type-check.html	2019-06-13 03:44:24 UTC (rev 246390)
@@ -117,13 +117,18 @@
     renderPassEncoder.endPass();
     const commandBuffer = commandEncoder.finish();
     device.getQueue().submit([commandBuffer]);
-
-    if (window.testRunner)
-        testRunner.notifyDone();
 }
 if (window.testRunner)
     testRunner.waitUntilDone();
-window.addEventListener("load", start);
+window.addEventListener("load", function() {
+    start().then(function() {
+        if (window.testRunner)
+            testRunner.notifyDone();
+    }, function() {
+        if (window.testRunner)
+            testRunner.notifyDone();
+    });
+});
 </script>
 </body>
 </html>

Modified: trunk/LayoutTests/webgpu/whlsl-do-while-loop-break.html (246389 => 246390)


--- trunk/LayoutTests/webgpu/whlsl-do-while-loop-break.html	2019-06-13 03:21:36 UTC (rev 246389)
+++ trunk/LayoutTests/webgpu/whlsl-do-while-loop-break.html	2019-06-13 03:44:24 UTC (rev 246390)
@@ -121,13 +121,18 @@
     renderPassEncoder.endPass();
     const commandBuffer = commandEncoder.finish();
     device.getQueue().submit([commandBuffer]);
-
-    if (window.testRunner)
-        testRunner.notifyDone();
 }
 if (window.testRunner)
     testRunner.waitUntilDone();
-window.addEventListener("load", start);
+window.addEventListener("load", function() {
+    start().then(function() {
+        if (window.testRunner)
+            testRunner.notifyDone();
+    }, function() {
+        if (window.testRunner)
+            testRunner.notifyDone();
+    });
+});
 </script>
 </body>
 </html>

Modified: trunk/LayoutTests/webgpu/whlsl-do-while-loop-continue.html (246389 => 246390)


--- trunk/LayoutTests/webgpu/whlsl-do-while-loop-continue.html	2019-06-13 03:21:36 UTC (rev 246389)
+++ trunk/LayoutTests/webgpu/whlsl-do-while-loop-continue.html	2019-06-13 03:44:24 UTC (rev 246390)
@@ -123,13 +123,18 @@
     renderPassEncoder.endPass();
     const commandBuffer = commandEncoder.finish();
     device.getQueue().submit([commandBuffer]);
-
-    if (window.testRunner)
-        testRunner.notifyDone();
 }
 if (window.testRunner)
     testRunner.waitUntilDone();
-window.addEventListener("load", start);
+window.addEventListener("load", function() {
+    start().then(function() {
+        if (window.testRunner)
+            testRunner.notifyDone();
+    }, function() {
+        if (window.testRunner)
+            testRunner.notifyDone();
+    });
+});
 </script>
 </body>
 </html>

Modified: trunk/LayoutTests/webgpu/whlsl-do-while-loop.html (246389 => 246390)


--- trunk/LayoutTests/webgpu/whlsl-do-while-loop.html	2019-06-13 03:21:36 UTC (rev 246389)
+++ trunk/LayoutTests/webgpu/whlsl-do-while-loop.html	2019-06-13 03:44:24 UTC (rev 246390)
@@ -118,13 +118,18 @@
     renderPassEncoder.endPass();
     const commandBuffer = commandEncoder.finish();
     device.getQueue().submit([commandBuffer]);
-
-    if (window.testRunner)
-        testRunner.notifyDone();
 }
 if (window.testRunner)
     testRunner.waitUntilDone();
-window.addEventListener("load", start);
+window.addEventListener("load", function() {
+    start().then(function() {
+        if (window.testRunner)
+            testRunner.notifyDone();
+    }, function() {
+        if (window.testRunner)
+            testRunner.notifyDone();
+    });
+});
 </script>
 </body>
 </html>

Modified: trunk/LayoutTests/webgpu/whlsl-dont-crash-parsing-enum.html (246389 => 246390)


--- trunk/LayoutTests/webgpu/whlsl-dont-crash-parsing-enum.html	2019-06-13 03:21:36 UTC (rev 246389)
+++ trunk/LayoutTests/webgpu/whlsl-dont-crash-parsing-enum.html	2019-06-13 03:44:24 UTC (rev 246390)
@@ -112,13 +112,18 @@
     renderPassEncoder.endPass();
     const commandBuffer = commandEncoder.finish();
     device.getQueue().submit([commandBuffer]);
-
-    if (window.testRunner)
-        testRunner.notifyDone();
 }
 if (window.testRunner)
     testRunner.waitUntilDone();
-window.addEventListener("load", start);
+window.addEventListener("load", function() {
+    start().then(function() {
+        if (window.testRunner)
+            testRunner.notifyDone();
+    }, function() {
+        if (window.testRunner)
+            testRunner.notifyDone();
+    });
+});
 </script>
 </body>
 </html>

Modified: trunk/LayoutTests/webgpu/whlsl-dot-expressions.html (246389 => 246390)


--- trunk/LayoutTests/webgpu/whlsl-dot-expressions.html	2019-06-13 03:21:36 UTC (rev 246389)
+++ trunk/LayoutTests/webgpu/whlsl-dot-expressions.html	2019-06-13 03:44:24 UTC (rev 246390)
@@ -112,13 +112,18 @@
     renderPassEncoder.endPass();
     const commandBuffer = commandEncoder.finish();
     device.getQueue().submit([commandBuffer]);
-
-    if (window.testRunner)
-        testRunner.notifyDone();
 }
 if (window.testRunner)
     testRunner.waitUntilDone();
-window.addEventListener("load", start);
+window.addEventListener("load", function() {
+    start().then(function() {
+        if (window.testRunner)
+            testRunner.notifyDone();
+    }, function() {
+        if (window.testRunner)
+            testRunner.notifyDone();
+    });
+});
 </script>
 </body>
 </html>

Modified: trunk/LayoutTests/webgpu/whlsl-ensure-proper-variable-lifetime-2.html (246389 => 246390)


--- trunk/LayoutTests/webgpu/whlsl-ensure-proper-variable-lifetime-2.html	2019-06-13 03:21:36 UTC (rev 246389)
+++ trunk/LayoutTests/webgpu/whlsl-ensure-proper-variable-lifetime-2.html	2019-06-13 03:44:24 UTC (rev 246390)
@@ -141,13 +141,18 @@
     renderPassEncoder.endPass();
     const commandBuffer = commandEncoder.finish();
     device.getQueue().submit([commandBuffer]);
-
-    if (window.testRunner)
-        testRunner.notifyDone();
 }
 if (window.testRunner)
     testRunner.waitUntilDone();
-window.addEventListener("load", start);
+window.addEventListener("load", function() {
+    start().then(function() {
+        if (window.testRunner)
+            testRunner.notifyDone();
+    }, function() {
+        if (window.testRunner)
+            testRunner.notifyDone();
+    });
+});
 </script>
 </body>
 </html>

Modified: trunk/LayoutTests/webgpu/whlsl-ensure-proper-variable-lifetime-3.html (246389 => 246390)


--- trunk/LayoutTests/webgpu/whlsl-ensure-proper-variable-lifetime-3.html	2019-06-13 03:21:36 UTC (rev 246389)
+++ trunk/LayoutTests/webgpu/whlsl-ensure-proper-variable-lifetime-3.html	2019-06-13 03:44:24 UTC (rev 246390)
@@ -142,13 +142,18 @@
     renderPassEncoder.endPass();
     const commandBuffer = commandEncoder.finish();
     device.getQueue().submit([commandBuffer]);
-
-    if (window.testRunner)
-        testRunner.notifyDone();
 }
 if (window.testRunner)
     testRunner.waitUntilDone();
-window.addEventListener("load", start);
+window.addEventListener("load", function() {
+    start().then(function() {
+        if (window.testRunner)
+            testRunner.notifyDone();
+    }, function() {
+        if (window.testRunner)
+            testRunner.notifyDone();
+    });
+});
 </script>
 </body>
 </html>

Modified: trunk/LayoutTests/webgpu/whlsl-ensure-proper-variable-lifetime.html (246389 => 246390)


--- trunk/LayoutTests/webgpu/whlsl-ensure-proper-variable-lifetime.html	2019-06-13 03:21:36 UTC (rev 246389)
+++ trunk/LayoutTests/webgpu/whlsl-ensure-proper-variable-lifetime.html	2019-06-13 03:44:24 UTC (rev 246390)
@@ -141,13 +141,18 @@
     renderPassEncoder.endPass();
     const commandBuffer = commandEncoder.finish();
     device.getQueue().submit([commandBuffer]);
-
-    if (window.testRunner)
-        testRunner.notifyDone();
 }
 if (window.testRunner)
     testRunner.waitUntilDone();
-window.addEventListener("load", start);
+window.addEventListener("load", function() {
+    start().then(function() {
+        if (window.testRunner)
+            testRunner.notifyDone();
+    }, function() {
+        if (window.testRunner)
+            testRunner.notifyDone();
+    });
+});
 </script>
 </body>
 </html>

Modified: trunk/LayoutTests/webgpu/whlsl-loops-break.html (246389 => 246390)


--- trunk/LayoutTests/webgpu/whlsl-loops-break.html	2019-06-13 03:21:36 UTC (rev 246389)
+++ trunk/LayoutTests/webgpu/whlsl-loops-break.html	2019-06-13 03:44:24 UTC (rev 246390)
@@ -122,13 +122,18 @@
     renderPassEncoder.endPass();
     const commandBuffer = commandEncoder.finish();
     device.getQueue().submit([commandBuffer]);
-
-    if (window.testRunner)
-        testRunner.notifyDone();
 }
 if (window.testRunner)
     testRunner.waitUntilDone();
-window.addEventListener("load", start);
+window.addEventListener("load", function() {
+    start().then(function() {
+        if (window.testRunner)
+            testRunner.notifyDone();
+    }, function() {
+        if (window.testRunner)
+            testRunner.notifyDone();
+    });
+});
 </script>
 </body>
 </html>

Modified: trunk/LayoutTests/webgpu/whlsl-loops-continue.html (246389 => 246390)


--- trunk/LayoutTests/webgpu/whlsl-loops-continue.html	2019-06-13 03:21:36 UTC (rev 246389)
+++ trunk/LayoutTests/webgpu/whlsl-loops-continue.html	2019-06-13 03:44:24 UTC (rev 246390)
@@ -122,13 +122,18 @@
     renderPassEncoder.endPass();
     const commandBuffer = commandEncoder.finish();
     device.getQueue().submit([commandBuffer]);
-
-    if (window.testRunner)
-        testRunner.notifyDone();
 }
 if (window.testRunner)
     testRunner.waitUntilDone();
-window.addEventListener("load", start);
+window.addEventListener("load", function() {
+    start().then(function() {
+        if (window.testRunner)
+            testRunner.notifyDone();
+    }, function() {
+        if (window.testRunner)
+            testRunner.notifyDone();
+    });
+});
 </script>
 </body>
 </html>

Modified: trunk/LayoutTests/webgpu/whlsl-loops.html (246389 => 246390)


--- trunk/LayoutTests/webgpu/whlsl-loops.html	2019-06-13 03:21:36 UTC (rev 246389)
+++ trunk/LayoutTests/webgpu/whlsl-loops.html	2019-06-13 03:44:24 UTC (rev 246390)
@@ -118,13 +118,18 @@
     renderPassEncoder.endPass();
     const commandBuffer = commandEncoder.finish();
     device.getQueue().submit([commandBuffer]);
-
-    if (window.testRunner)
-        testRunner.notifyDone();
 }
 if (window.testRunner)
     testRunner.waitUntilDone();
-window.addEventListener("load", start);
+window.addEventListener("load", function() {
+    start().then(function() {
+        if (window.testRunner)
+            testRunner.notifyDone();
+    }, function() {
+        if (window.testRunner)
+            testRunner.notifyDone();
+    });
+});
 </script>
 </body>
 </html>

Modified: trunk/LayoutTests/webgpu/whlsl-nested-dot-_expression_-rvalue.html (246389 => 246390)


--- trunk/LayoutTests/webgpu/whlsl-nested-dot-_expression_-rvalue.html	2019-06-13 03:21:36 UTC (rev 246389)
+++ trunk/LayoutTests/webgpu/whlsl-nested-dot-_expression_-rvalue.html	2019-06-13 03:44:24 UTC (rev 246390)
@@ -126,13 +126,18 @@
     renderPassEncoder.endPass();
     const commandBuffer = commandEncoder.finish();
     device.getQueue().submit([commandBuffer]);
-
-    if (window.testRunner)
-        testRunner.notifyDone();
 }
 if (window.testRunner)
     testRunner.waitUntilDone();
-window.addEventListener("load", start);
+window.addEventListener("load", function() {
+    start().then(function() {
+        if (window.testRunner)
+            testRunner.notifyDone();
+    }, function() {
+        if (window.testRunner)
+            testRunner.notifyDone();
+    });
+});
 </script>
 </body>
 </html>

Modified: trunk/LayoutTests/webgpu/whlsl-nested-loop.html (246389 => 246390)


--- trunk/LayoutTests/webgpu/whlsl-nested-loop.html	2019-06-13 03:21:36 UTC (rev 246389)
+++ trunk/LayoutTests/webgpu/whlsl-nested-loop.html	2019-06-13 03:44:24 UTC (rev 246390)
@@ -154,13 +154,18 @@
     renderPassEncoder.endPass();
     const commandBuffer = commandEncoder.finish();
     device.getQueue().submit([commandBuffer]);
-
-    if (window.testRunner)
-        testRunner.notifyDone();
 }
 if (window.testRunner)
     testRunner.waitUntilDone();
-window.addEventListener("load", start);
+window.addEventListener("load", function() {
+    start().then(function() {
+        if (window.testRunner)
+            testRunner.notifyDone();
+    }, function() {
+        if (window.testRunner)
+            testRunner.notifyDone();
+    });
+});
 </script>
 </body>
 </html>

Modified: trunk/LayoutTests/webgpu/whlsl-return-local-variable.html (246389 => 246390)


--- trunk/LayoutTests/webgpu/whlsl-return-local-variable.html	2019-06-13 03:21:36 UTC (rev 246389)
+++ trunk/LayoutTests/webgpu/whlsl-return-local-variable.html	2019-06-13 03:44:24 UTC (rev 246390)
@@ -119,13 +119,18 @@
     renderPassEncoder.endPass();
     const commandBuffer = commandEncoder.finish();
     device.getQueue().submit([commandBuffer]);
-
-    if (window.testRunner)
-        testRunner.notifyDone();
 }
 if (window.testRunner)
     testRunner.waitUntilDone();
-window.addEventListener("load", start);
+window.addEventListener("load", function() {
+    start().then(function() {
+        if (window.testRunner)
+            testRunner.notifyDone();
+    }, function() {
+        if (window.testRunner)
+            testRunner.notifyDone();
+    });
+});
 </script>
 </body>
 </html>

Modified: trunk/LayoutTests/webgpu/whlsl-store-to-property-updates-properly.html (246389 => 246390)


--- trunk/LayoutTests/webgpu/whlsl-store-to-property-updates-properly.html	2019-06-13 03:21:36 UTC (rev 246389)
+++ trunk/LayoutTests/webgpu/whlsl-store-to-property-updates-properly.html	2019-06-13 03:44:24 UTC (rev 246390)
@@ -134,13 +134,18 @@
     renderPassEncoder.endPass();
     const commandBuffer = commandEncoder.finish();
     device.getQueue().submit([commandBuffer]);
-
-    if (window.testRunner)
-        testRunner.notifyDone();
 }
 if (window.testRunner)
     testRunner.waitUntilDone();
-window.addEventListener("load", start);
+window.addEventListener("load", function() {
+    start().then(function() {
+        if (window.testRunner)
+            testRunner.notifyDone();
+    }, function() {
+        if (window.testRunner)
+            testRunner.notifyDone();
+    });
+});
 </script>
 </body>
 </html>

Modified: trunk/LayoutTests/webgpu/whlsl-while-loop-break.html (246389 => 246390)


--- trunk/LayoutTests/webgpu/whlsl-while-loop-break.html	2019-06-13 03:21:36 UTC (rev 246389)
+++ trunk/LayoutTests/webgpu/whlsl-while-loop-break.html	2019-06-13 03:44:24 UTC (rev 246390)
@@ -124,13 +124,18 @@
     renderPassEncoder.endPass();
     const commandBuffer = commandEncoder.finish();
     device.getQueue().submit([commandBuffer]);
-
-    if (window.testRunner)
-        testRunner.notifyDone();
 }
 if (window.testRunner)
     testRunner.waitUntilDone();
-window.addEventListener("load", start);
+window.addEventListener("load", function() {
+    start().then(function() {
+        if (window.testRunner)
+            testRunner.notifyDone();
+    }, function() {
+        if (window.testRunner)
+            testRunner.notifyDone();
+    });
+});
 </script>
 </body>
 </html>

Modified: trunk/LayoutTests/webgpu/whlsl-while-loop-continue.html (246389 => 246390)


--- trunk/LayoutTests/webgpu/whlsl-while-loop-continue.html	2019-06-13 03:21:36 UTC (rev 246389)
+++ trunk/LayoutTests/webgpu/whlsl-while-loop-continue.html	2019-06-13 03:44:24 UTC (rev 246390)
@@ -124,13 +124,18 @@
     renderPassEncoder.endPass();
     const commandBuffer = commandEncoder.finish();
     device.getQueue().submit([commandBuffer]);
-
-    if (window.testRunner)
-        testRunner.notifyDone();
 }
 if (window.testRunner)
     testRunner.waitUntilDone();
-window.addEventListener("load", start);
+window.addEventListener("load", function() {
+    start().then(function() {
+        if (window.testRunner)
+            testRunner.notifyDone();
+    }, function() {
+        if (window.testRunner)
+            testRunner.notifyDone();
+    });
+});
 </script>
 </body>
 </html>

Modified: trunk/LayoutTests/webgpu/whlsl-zero-initialize-values-2.html (246389 => 246390)


--- trunk/LayoutTests/webgpu/whlsl-zero-initialize-values-2.html	2019-06-13 03:21:36 UTC (rev 246389)
+++ trunk/LayoutTests/webgpu/whlsl-zero-initialize-values-2.html	2019-06-13 03:44:24 UTC (rev 246390)
@@ -140,13 +140,18 @@
     renderPassEncoder.endPass();
     const commandBuffer = commandEncoder.finish();
     device.getQueue().submit([commandBuffer]);
-
-    if (window.testRunner)
-        testRunner.notifyDone();
 }
 if (window.testRunner)
     testRunner.waitUntilDone();
-window.addEventListener("load", start);
+window.addEventListener("load", function() {
+    start().then(function() {
+        if (window.testRunner)
+            testRunner.notifyDone();
+    }, function() {
+        if (window.testRunner)
+            testRunner.notifyDone();
+    });
+});
 </script>
 </body>
 </html>

Modified: trunk/LayoutTests/webgpu/whlsl-zero-initialize-values.html (246389 => 246390)


--- trunk/LayoutTests/webgpu/whlsl-zero-initialize-values.html	2019-06-13 03:21:36 UTC (rev 246389)
+++ trunk/LayoutTests/webgpu/whlsl-zero-initialize-values.html	2019-06-13 03:44:24 UTC (rev 246390)
@@ -123,13 +123,18 @@
     renderPassEncoder.endPass();
     const commandBuffer = commandEncoder.finish();
     device.getQueue().submit([commandBuffer]);
-
-    if (window.testRunner)
-        testRunner.notifyDone();
 }
 if (window.testRunner)
     testRunner.waitUntilDone();
-window.addEventListener("load", start);
+window.addEventListener("load", function() {
+    start().then(function() {
+        if (window.testRunner)
+            testRunner.notifyDone();
+    }, function() {
+        if (window.testRunner)
+            testRunner.notifyDone();
+    });
+});
 </script>
 </body>
 </html>

Modified: trunk/LayoutTests/webgpu/whlsl.html (246389 => 246390)


--- trunk/LayoutTests/webgpu/whlsl.html	2019-06-13 03:21:36 UTC (rev 246389)
+++ trunk/LayoutTests/webgpu/whlsl.html	2019-06-13 03:44:24 UTC (rev 246390)
@@ -107,13 +107,18 @@
     renderPassEncoder.endPass();
     const commandBuffer = commandEncoder.finish();
     device.getQueue().submit([commandBuffer]);
-
-    if (window.testRunner)
-        testRunner.notifyDone();
 }
 if (window.testRunner)
     testRunner.waitUntilDone();
-window.addEventListener("load", start);
+window.addEventListener("load", function() {
+    start().then(function() {
+        if (window.testRunner)
+            testRunner.notifyDone();
+    }, function() {
+        if (window.testRunner)
+            testRunner.notifyDone();
+    });
+});
 </script>
 </body>
 </html>
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to