Title: [291092] trunk/LayoutTests/imported/w3c
- Revision
- 291092
- Author
- [email protected]
- Date
- 2022-03-09 23:14:02 -0800 (Wed, 09 Mar 2022)
Log Message
imported/w3c/web-platform-tests/webrtc-extensions/transfer-datachannel.html is flaky
https://bugs.webkit.org/show_bug.cgi?id=237327
Reviewed by Eric Carlson.
The worker is first sending the Opened message, than any message coming from the data channel.
Wait for the Opened message before proceeding with the rest of the test.
* web-platform-tests/webrtc-extensions/transfer-datachannel.html:
Modified Paths
Diff
Modified: trunk/LayoutTests/imported/w3c/ChangeLog (291091 => 291092)
--- trunk/LayoutTests/imported/w3c/ChangeLog 2022-03-10 07:04:54 UTC (rev 291091)
+++ trunk/LayoutTests/imported/w3c/ChangeLog 2022-03-10 07:14:02 UTC (rev 291092)
@@ -1,3 +1,15 @@
+2022-03-09 Youenn Fablet <[email protected]>
+
+ imported/w3c/web-platform-tests/webrtc-extensions/transfer-datachannel.html is flaky
+ https://bugs.webkit.org/show_bug.cgi?id=237327
+
+ Reviewed by Eric Carlson.
+
+ The worker is first sending the Opened message, than any message coming from the data channel.
+ Wait for the Opened message before proceeding with the rest of the test.
+
+ * web-platform-tests/webrtc-extensions/transfer-datachannel.html:
+
2022-03-09 Antoine Quint <[email protected]>
[web-animations] counter-increment should support discrete animation
Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/webrtc-extensions/transfer-datachannel.html (291091 => 291092)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/webrtc-extensions/transfer-datachannel.html 2022-03-10 07:04:54 UTC (rev 291091)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/webrtc-extensions/transfer-datachannel.html 2022-03-10 07:14:02 UTC (rev 291092)
@@ -53,7 +53,7 @@
createConnections(test, (firstConnection) => {
localChannel = firstConnection.createDataChannel('sendDataChannel');
worker.postMessage({channel: localChannel}, [localChannel]);
-
+ data = "" Promise(resolve => worker._onmessage_ = (event) => resolve(event.data));
}, (secondConnection) => {
secondConnection._ondatachannel_ = (event) => {
remoteChannel = event.channel;
@@ -62,6 +62,8 @@
});
});
+ assert_equals(await data, "opened");
+
data = "" Promise(resolve => worker._onmessage_ = (event) => resolve(event.data));
remoteChannel.send("OK");
assert_equals(await data, "OK");
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes