Title: [261932] trunk/LayoutTests
- Revision
- 261932
- Author
- you...@apple.com
- Date
- 2020-05-20 10:59:59 -0700 (Wed, 20 May 2020)
Log Message
Add a test to check for creation and deletion of an audio renderer without playing it
https://bugs.webkit.org/show_bug.cgi?id=212138
Reviewed by Eric Carlson.
* webrtc/remoteAudio-never-played-expected.txt: Added.
* webrtc/remoteAudio-never-played.html: Added.
Modified Paths
Added Paths
Diff
Modified: trunk/LayoutTests/ChangeLog (261931 => 261932)
--- trunk/LayoutTests/ChangeLog 2020-05-20 17:53:42 UTC (rev 261931)
+++ trunk/LayoutTests/ChangeLog 2020-05-20 17:59:59 UTC (rev 261932)
@@ -1,3 +1,13 @@
+2020-05-20 Youenn Fablet <you...@apple.com>
+
+ Add a test to check for creation and deletion of an audio renderer without playing it
+ https://bugs.webkit.org/show_bug.cgi?id=212138
+
+ Reviewed by Eric Carlson.
+
+ * webrtc/remoteAudio-never-played-expected.txt: Added.
+ * webrtc/remoteAudio-never-played.html: Added.
+
2020-05-20 Zan Dobersek <zdober...@igalia.com>
Unreviewed WPE gardening. Unskipped half of pending HTTP tests,
Added: trunk/LayoutTests/webrtc/remoteAudio-never-played-expected.txt (0 => 261932)
--- trunk/LayoutTests/webrtc/remoteAudio-never-played-expected.txt (rev 0)
+++ trunk/LayoutTests/webrtc/remoteAudio-never-played-expected.txt 2020-05-20 17:59:59 UTC (rev 261932)
@@ -0,0 +1,4 @@
+
+
+PASS Create and delete audio renderer without playing it
+
Added: trunk/LayoutTests/webrtc/remoteAudio-never-played.html (0 => 261932)
--- trunk/LayoutTests/webrtc/remoteAudio-never-played.html (rev 0)
+++ trunk/LayoutTests/webrtc/remoteAudio-never-played.html 2020-05-20 17:59:59 UTC (rev 261932)
@@ -0,0 +1,34 @@
+<!doctype html>
+<html>
+ <head>
+ <meta charset="utf-8">
+ <title>Creating/deleting an audio receiver without playing it</title>
+ <script src=""
+ <script src=""
+ </head>
+ <body>
+ <video id="video"></video>
+ <script src =""
+ <script>
+promise_test(async (test) => {
+ const localStream = await navigator.mediaDevices.getUserMedia({audio: true});
+ const stream = await new Promise((resolve, reject) => {
+ createConnections((firstConnection) => {
+ firstConnection.addTrack(localStream.getAudioTracks()[0], localStream);
+ }, (secondConnection) => {
+ secondConnection._ontrack_ = (trackEvent) => {
+ resolve(trackEvent.streams[0]);
+ };
+ });
+ setTimeout(() => reject("Test timed out"), 5000);
+ });
+
+ video.srcObject = stream;
+ await new Promise(resolve => setTimeout(resolve, 10));
+
+ video.srcObject = stream;
+ await new Promise(resolve => setTimeout(resolve, 1000));
+}, "Create and delete audio renderer without playing it");
+ </script>
+ </body>
+</html>
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes