Changeset 159938 in webkit
- Timestamp:
- Dec 2, 2013 9:20:52 AM (10 years ago)
- Location:
- trunk/LayoutTests
- Files:
-
- 1 added
- 1 deleted
- 5 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r159932 r159938 1 2013-12-02 Lauro Neto <lauro.neto@openbossa.org> 2 3 [MediaStream] Update layout tests to newer spec. 4 https://bugs.webkit.org/show_bug.cgi?id=124985 5 6 Reviewed by Eric Carlson. 7 8 * TestExpectations: 9 * fast/mediastream/MediaStream-onended-expected.txt: Removed. 10 * fast/mediastream/MediaStreamTrack-onended-expected.txt: Added. 11 * fast/mediastream/MediaStreamTrack-onended.html: Renamed from LayoutTests/fast/mediastream/MediaStream-onended.html. 12 * fast/mediastream/RTCPeerConnection-ice-expected.txt: 13 * fast/mediastream/RTCPeerConnection-state-expected.txt: 14 * fast/mediastream/RTCSessionDescription-expected.txt: 15 1 16 2013-12-02 Chris Fleizach <cfleizach@apple.com> 2 17 -
trunk/LayoutTests/TestExpectations
r159848 r159938 66 66 fast/mediastream/MediaStream-construct-with-ended-tracks.html [ Skip ] 67 67 fast/mediastream/MediaStream-clone.html [ Skip ] 68 69 # The spec is not clear if the MediaStream ended event should be fired if stop is called on each MediaStream's track70 # Skipping it for now, then put it again when the spec decides it71 fast/mediastream/MediaStream-onended.html [ Skip ] -
trunk/LayoutTests/fast/mediastream/MediaStreamTrack-onended.html
r159937 r159938 8 8 <div id="console"></div> 9 9 <script> 10 description("Tests MediaStream ::onended callback.");10 description("Tests MediaStreamTrack::onended callback."); 11 11 12 12 function error() { … … 29 29 debug(""); 30 30 testPassed('streamEnded2 was called.'); 31 shouldBeTrue('stream.ended'); 31 shouldBeTrue('track.readyState == "ended"'); 32 shouldBeTrue('trackClone.readyState == "ended"'); 32 33 finishJSTest(); 33 34 } … … 37 38 testPassed('gotStream2 was called.'); 38 39 stream = new webkitMediaStream(s); 39 shouldBeFalse('stream.ended'); 40 track = stream.getAudioTracks()[0]; 41 trackClone = track.clone(); 42 shouldBeFalse('track.readyState == "ended"'); 43 shouldBeFalse('trackClone.readyState == "ended"'); 40 44 try { 41 stream.onended = streamEnded2;42 stream.stop();45 trackClone.onended = streamEnded2; 46 track.stop(); 43 47 } catch (e) { 44 48 testFailed('MediaStream threw exception :' + e); … … 50 54 debug(""); 51 55 testPassed('streamEnded was called.'); 52 shouldBeTrue('stream.ended'); 56 shouldBeTrue('track.readyState == "ended"'); 57 shouldBeTrue('trackClone.readyState == "ended"'); 53 58 54 59 getUserMedia({audio:true, video:true}, gotStream2); … … 59 64 testPassed('gotStream was called.'); 60 65 stream = s; 61 shouldBeFalse('stream.ended'); 66 // A second track is required as calling stop will not fire the ended 67 // event on the object it was called. 68 track = stream.getAudioTracks()[0]; 69 trackClone = track.clone(); 70 shouldBeFalse('track.readyState == "ended"'); 71 shouldBeFalse('trackClone.readyState == "ended"'); 62 72 try { 63 stream.onended = streamEnded;64 stream.stop();73 trackClone.onended = streamEnded; 74 track.stop(); 65 75 } catch (e) { 66 76 testFailed('MediaStream threw exception :' + e); -
trunk/LayoutTests/fast/mediastream/RTCPeerConnection-ice-expected.txt
r158964 r159938 4 4 5 5 6 PASS pc = new webkitRTCPeerConnection({iceServers:[]} , null); did not throw exception.6 PASS pc = new webkitRTCPeerConnection({iceServers:[]}); did not throw exception. 7 7 PASS iceConnectionState is completed 8 8 PASS pc.addIceCandidate(null, null, null); threw exception TypeError: Type error. -
trunk/LayoutTests/fast/mediastream/RTCPeerConnection-state-expected.txt
r146582 r159938 4 4 5 5 6 PASS pc = new webkitRTCPeerConnection({iceServers:[]} , null); did not throw exception.6 PASS pc = new webkitRTCPeerConnection({iceServers:[]}); did not throw exception. 7 7 PASS pc.signalingState is "stable" 8 8 PASS stateChanged was called -
trunk/LayoutTests/fast/mediastream/RTCSessionDescription-expected.txt
r159230 r159938 12 12 PASS sessionDescription.type is "offer" 13 13 PASS sessionDescription.sdp is "foobar" 14 PASS new RTCSessionDescription(null); threw exception TypeError: Optional description init argument of RTCSessionDescriptionmust be a valid Dictionary.15 PASS new RTCSessionDescription(5); threw exception TypeError: Optional description init argument of RTCSessionDescriptionmust be a valid Dictionary.16 PASS new RTCSessionDescription('foobar'); threw exception TypeError: Optional description init argument of RTCSessionDescriptionmust be a valid Dictionary.14 PASS new RTCSessionDescription(null); threw exception TypeError: Optional RTCSessionDescription constructor argument must be a valid Dictionary. 15 PASS new RTCSessionDescription(5); threw exception TypeError: Optional RTCSessionDescription constructor argument must be a valid Dictionary. 16 PASS new RTCSessionDescription('foobar'); threw exception TypeError: Optional RTCSessionDescription constructor argument must be a valid Dictionary. 17 17 PASS new RTCSessionDescription({type:'foobar', sdp:'x'}); threw exception TypeError: Invalid RTCSessionDescription constructor arguments. 18 18 PASS new RTCSessionDescription({type:'offer', sdp:''}); threw exception TypeError: Invalid RTCSessionDescription constructor arguments.
Note: See TracChangeset
for help on using the changeset viewer.