blob: 60d95e978fa36268e4de4f3d73074a74ab6cce99 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
1. Test that errors fired while evaluating/loading <source> elements are fired at the <source> and not at the <video> element.
2. Verifiy that an 'error' event fired while processing/loading a <source> element does not set the media element's 'error' attribute.
EVENT(loadstart)
EVENT(error) from <source id='missing-src' src=''> OK
EXPECTED (video.error == 'null') OK
EVENT(error) from <source id='bogus-type' src='content/test.mp4'> OK
EXPECTED (video.error == 'null') OK
EVENT(error) from <source id='unsupported-media-query' src='content/test.mp4'> OK
EXPECTED (video.error == 'null') OK
EVENT(error) from <source id='missing-file' src='content/error2.mpeg'> OK
EXPECTED (video.error == 'null') OK
EVENT(error) from <source id='format-error' src='content/unsupported_track.mov'> OK
EXPECTED (video.error == 'null') OK
EVENT(error) from <source id='supported-format-mp4' src='content/test.mp4'> OK
EXPECTED (video.error == 'null') OK
EVENT(durationchange)
EVENT(loadeddata)
EXPECTED (relativeURL(video.currentSrc) == 'content/test.ogv') OK
EXPECTED (video.error == 'null') OK
END OF TEST
|