-
commit-queue@webkit.org authored
Create MediaStream object with ended attribute set if all tracks that are being used on its creation are ended https://bugs.webkit.org/show_bug.cgi?id=122358 Patch by Thiago de Barros Lacerda <thiago.lacerda@openbossa.org> on 2013-10-10 Reviewed by Jer Noble. Source/WebCore: Spec tells that if all tracks that belongs to a new MediaStream object being created are ended, then the ended attribute of this MediaStream must be set to true. http://www.w3.org/TR/mediacapture-streams/#widl-MediaStream-ended Since there is no port supporting MediaStream yet, we are skipping this test for now. Test: fast/mediastream/MediaStream-construct-with-ended-tracks.html * Modules/mediastream/MediaStream.cpp: (WebCore::createFromSourceVectors): (WebCore::MediaStream::create): * Modules/webaudio/MediaStreamAudioDestinationNode.cpp: (WebCore::MediaStreamAudioDestinationNode::MediaStreamAudioDestinationNode): * platform/mediastream/MediaStreamDescriptor.cpp: (WebCore::MediaStreamDescriptor::create): (WebCore::MediaStreamDescriptor::MediaStreamDescriptor): * platform/mediastream/MediaStreamDescriptor.h: * platform/mock/MockMediaStreamCenter.cpp: (WebCore::MockMediaStreamCenter::createMediaStream): LayoutTests: Since there is no port supporting MediaStream yet, we are skipping this test for now. * TestExpectations: * fast/mediastream/MediaStream-construct-with-ended-tracks.html: Added. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@157268 268f45cc-cd09-0410-ab3c-d52691b4dbfc
aadaf7a6