blob: d6030e1c1d72d8f919b20a250aab24c5a0d0344d [file] [log] [blame]
EVENT(load)
RUN(internals.setMockMediaPlaybackTargetPickerEnabled(true))
RUN(video.src = findMediaFile('video', 'content/test'))
EVENT(loadedmetadata)
RUN(video.parentNode.removeChild(video))
EXPECTED (internals.elementShouldBufferData(video) == 'false') OK
RUN(video.webkitShowPlaybackTargetPicker())
RUN(internals.setMockMediaPlaybackTargetPickerState('Sleepy TV', 'DeviceAvailable'))
EVENT(webkitcurrentplaybacktargetiswirelesschanged)
EXPECTED (video.webkitCurrentPlaybackTargetIsWireless == 'true') OK
EXPECTED (internals.elementShouldBufferData(video) == 'true') OK
END OF TEST