2 ** set video.src
3 RUN(video.src = findMediaFile('video', 'content/test'))
4
5 EVENT(canplaythrough)
6
7 ** simulate choosing a device from the menu
8 RUN(video.webkitShowPlaybackTargetPicker())
9 EVENT(webkitcurrentplaybacktargetiswirelesschanged)
10
11 ** start playing
12 RUN(video.play())
13
14 EVENT(ended)
15
16 ** reset video source
17 RUN(video.src = findMediaFile('video', 'content/test'))
18 RUN(video.play())
19
20 EVENT(webkitcurrentplaybacktargetiswirelesschanged)
21 END OF TEST
22