Changeset 215251 in webkit
- Timestamp:
- Apr 11, 2017 3:47:26 PM (7 years ago)
- Location:
- trunk/LayoutTests
- Files:
-
- 14 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r215239 r215251 1 2017-04-11 Youenn Fablet <youenn@apple.com> 2 3 Migrating webrtc tests to latest API 4 https://bugs.webkit.org/show_bug.cgi?id=170709 5 6 Reviewed by Eric Carlson. 7 8 * webrtc/audio-peer-connection-webaudio.html: 9 * webrtc/libwebrtc/descriptionGetters.html: 10 * webrtc/negotiatedneeded-event-addStream.html: 11 * webrtc/peer-connection-audio-mute.html: 12 * webrtc/peer-connection-audio-mute2.html: 13 * webrtc/peer-connection-remote-audio-mute.html: 14 * webrtc/peer-connection-remote-audio-mute2.html: 15 * webrtc/release-after-getting-track.html: 16 * webrtc/video-disabled-black.html: 17 * webrtc/video-mute.html: 18 * webrtc/video-remote-mute.html: 19 * webrtc/video-with-receiver.html: 20 * webrtc/video.html: 21 1 22 2017-04-11 Youenn Fablet <youenn@apple.com> 2 23 -
trunk/LayoutTests/webrtc/audio-peer-connection-webaudio.html
r215238 r215251 15 15 return new Promise((resolve, reject) => { 16 16 createConnections((firstConnection) => { 17 firstConnection.add Stream(stream);17 firstConnection.addTrack(stream.getAudioTracks()[0], stream); 18 18 }, (secondConnection) => { 19 secondConnection.on addstream = (streamEvent) => { resolve(streamEvent.stream); };19 secondConnection.ontrack = (event) => { resolve(event.streams[0]); }; 20 20 }); 21 21 setTimeout(() => reject("Test timed out"), 5000); -
trunk/LayoutTests/webrtc/libwebrtc/descriptionGetters.html
r215238 r215251 18 18 return navigator.mediaDevices.getUserMedia({ video: true}).then((stream) => { 19 19 20 localConnection.add Stream(stream);20 localConnection.addTrack(stream.getVideoTracks()[0], stream); 21 21 return localConnection.createOffer(); 22 22 }).then((desc) => { -
trunk/LayoutTests/webrtc/negotiatedneeded-event-addStream.html
r215238 r215251 21 21 var pc = new RTCPeerConnection(); 22 22 pc.onnegotiationneeded = () => { resolve(); }; 23 pc.add Stream(stream);23 pc.addTrack(stream.getVideoTracks()[0], stream); 24 24 }); 25 25 }); … … 34 34 var pc = new RTCPeerConnection(); 35 35 pc.onnegotiationneeded = () => { reject(); }; 36 pc.add Stream(stream);36 pc.addTrack(stream.getVideoTracks()[0], stream); 37 37 pc.close(); 38 38 setTimeout(resolve, 500); -
trunk/LayoutTests/webrtc/peer-connection-audio-mute.html
r215238 r215251 20 20 return new Promise((resolve, reject) => { 21 21 createConnections((firstConnection) => { 22 firstConnection.add Stream(localStream);22 firstConnection.addTrack(localTrack, localStream); 23 23 }, (secondConnection) => { 24 secondConnection.on addstream = (streamEvent) => {25 remoteStream = streamEvent.stream;24 secondConnection.ontrack = (trackEvent) => { 25 remoteStream = trackEvent.streams[0]; 26 26 resolve(); 27 27 }; -
trunk/LayoutTests/webrtc/peer-connection-audio-mute2.html
r215238 r215251 20 20 return new Promise((resolve, reject) => { 21 21 createConnections((firstConnection) => { 22 firstConnection.add Stream(localStream);22 firstConnection.addTrack(localTrack); 23 23 }, (secondConnection) => { 24 secondConnection.on addstream = (streamEvent) => {25 remoteStream = streamEvent.stream;24 secondConnection.ontrack = (trackEvent) => { 25 remoteStream = trackEvent.streams[0]; 26 26 resolve(); 27 27 }; -
trunk/LayoutTests/webrtc/peer-connection-remote-audio-mute.html
r215238 r215251 19 19 return new Promise((resolve, reject) => { 20 20 createConnections((firstConnection) => { 21 firstConnection.add Stream(localStream);21 firstConnection.addTrack(localStream.getAudioTracks()[0], localStream); 22 22 }, (secondConnection) => { 23 secondConnection.on addstream = (streamEvent) => {24 remoteStream = streamEvent.stream;23 secondConnection.ontrack = (trackEvent) => { 24 remoteStream = trackEvent.streams[0]; 25 25 remoteTrack = remoteStream.getAudioTracks()[0]; 26 26 resolve(); -
trunk/LayoutTests/webrtc/peer-connection-remote-audio-mute2.html
r215238 r215251 19 19 return new Promise((resolve, reject) => { 20 20 createConnections((firstConnection) => { 21 firstConnection.add Stream(localStream);21 firstConnection.addTrack(localStream.getAudioTracks()[0]); 22 22 }, (secondConnection) => { 23 secondConnection.on addstream = (streamEvent) => {24 remoteStream = streamEvent.stream;23 secondConnection.ontrack = (trackEvent) => { 24 remoteStream = trackEvent.streams[0]; 25 25 remoteTrack = remoteStream.getAudioTracks()[0]; 26 26 resolve(); -
trunk/LayoutTests/webrtc/release-after-getting-track.html
r215238 r215251 17 17 return new Promise((resolve, reject) => { 18 18 createConnections((firstConnection) => { 19 firstConnection.addStream(stream); 19 firstConnection.addTrack(stream.getVideoTracks()[0], stream); 20 firstConnection.addTrack(stream.getAudioTracks()[0], stream); 20 21 }, (secondConnection) => { 21 22 secondConnection.ontrack = resolve; -
trunk/LayoutTests/webrtc/video-disabled-black.html
r215238 r215251 54 54 errorTest = reject; 55 55 createConnections((firstConnection) => { 56 firstConnection.add Stream(stream);56 firstConnection.addTrack(stream.getVideoTracks()[0], stream); 57 57 }, (secondConnection) => { 58 secondConnection.on addstream = (streamEvent) => { testStream(streamEvent.stream); };58 secondConnection.ontrack = (trackEvent) => { testStream(trackEvent.streams[0]); }; 59 59 }); 60 60 }); -
trunk/LayoutTests/webrtc/video-mute.html
r215238 r215251 14 14 video = document.getElementById("video"); 15 15 canvas = document.getElementById("canvas"); 16 // FIXME: We should use tracks17 16 18 17 function isVideoBlack() … … 42 41 43 42 createConnections((firstConnection) => { 44 firstConnection.add Stream(localStream);43 firstConnection.addTrack(track, localStream); 45 44 }, (secondConnection) => { 46 secondConnection.on addstream = (streamEvent) => { resolve(streamEvent.stream); };45 secondConnection.ontrack = (trackEvent) => { resolve(trackEvent.streams[0]); }; 47 46 }); 48 47 setTimeout(() => reject("Test timed out"), 5000); -
trunk/LayoutTests/webrtc/video-remote-mute.html
r215238 r215251 14 14 video = document.getElementById("video"); 15 15 canvas = document.getElementById("canvas"); 16 // FIXME: We should use tracks17 16 18 17 function isVideoBlack() … … 39 38 return new Promise((resolve, reject) => { 40 39 createConnections((firstConnection) => { 41 firstConnection.add Stream(localStream);40 firstConnection.addTrack(localStream.getVideoTracks()[0], localStream); 42 41 }, (secondConnection) => { 43 secondConnection.on addstream = (streamEvent) => { resolve(streamEvent.stream); };42 secondConnection.ontrack = (trackEvent) => { resolve(trackEvent.streams[0]); }; 44 43 }); 45 44 setTimeout(() => reject("Test timed out"), 5000); -
trunk/LayoutTests/webrtc/video-with-receiver.html
r215238 r215251 47 47 return new Promise((resolve, reject) => { 48 48 createConnections((firstConnection) => { 49 firstConnection.add Stream(stream);49 firstConnection.addTrack(stream.getVideoTracks()[0], stream); 50 50 }, (secondConnection) => { 51 51 resolve(secondConnection.addTransceiver("video").receiver.track); -
trunk/LayoutTests/webrtc/video.html
r215238 r215251 47 47 return new Promise((resolve, reject) => { 48 48 createConnections((firstConnection) => { 49 firstConnection.addStream(stream); 49 var track = stream.getVideoTracks()[0]; 50 firstConnection.addTrack(stream.getVideoTracks()[0], stream); 50 51 }, (secondConnection) => { 51 52 secondConnection.ontrack = (trackEvent) => {
Note: See TracChangeset
for help on using the changeset viewer.