summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/media/media-load-event-expected.txt
blob: 189daeb2648728a768d69818a83c036b721e8bce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Test that media file is not reloaded when an element is inserted into the DOM.

RUN(mediaElement = document.createElement('audio'))
RUN(mediaElement.src = 'content/test.wav')
RUN(mediaElement.load())

EVENT(loadstart)
EVENT(durationchange)
EVENT(loadeddata)
EVENT(canplaythrough)

RUN(document.getElementById('parent').appendChild(mediaElement))
RUN(mediaElement.play())

EVENT(canplaythrough)
EVENT(play)
EVENT(playing)

END OF TEST