LayoutTest workers/sab/postMessage-clones.html is a flaky failure
authorfpizlo@apple.com <fpizlo@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 10 Feb 2017 20:34:15 +0000 (20:34 +0000)
committerfpizlo@apple.com <fpizlo@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 10 Feb 2017 20:34:15 +0000 (20:34 +0000)
https://bugs.webkit.org/show_bug.cgi?id=168129

Unreviewed, make this test more deterministic.

* workers/sab/postMessage-clones.html:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@212132 268f45cc-cd09-0410-ab3c-d52691b4dbfc

LayoutTests/ChangeLog
LayoutTests/workers/sab/postMessage-clones.html

index a74f9dc..e603ac3 100644 (file)
@@ -1,3 +1,12 @@
+2017-02-10  Filip Pizlo  <fpizlo@apple.com>
+
+        LayoutTest workers/sab/postMessage-clones.html is a flaky failure
+        https://bugs.webkit.org/show_bug.cgi?id=168129
+
+        Unreviewed, make this test more deterministic.
+
+        * workers/sab/postMessage-clones.html:
+
 2017-02-10  Dave Hyatt  <hyatt@apple.com>
 
         [CSS Parser] Make intercap property values serialize correctly
index 0bb5f92..7306a75 100644 (file)
@@ -26,7 +26,11 @@ window.addEventListener("message", function (event) {
         testRunner.notifyDone();
 });
 
-postMessage(memory, "*");
+window.setTimeout(
+    function() {
+        window.postMessage(memory, "*");
+    },
+    0);
 </script>
 <script src="../../resources/js-test-post.js"></script>
 </body>