blob: 11dee6c91d0c28dfb69cb04f064fc30c3e4010d6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
1. Test that an invalid src attribute fires an error when the file fails to load.
2. Test that changing src attribute triggers load after a load fails.
3. Test that changing src triggers load once a file is known to be valid.
EVENT(error)
EXPECTED (relativeURL(video.currentSrc) == 'bogus') OK
EXPECTED (video.networkState == '3') OK
EXPECTED (video.error.code == '4') OK
EVENT(loadedmetadata)
EXPECTED (stripExtension(relativeURL(video.currentSrc)) == 'content/test') OK
EXPECTED (isNaN(video.duration) == 'false') OK
EVENT(loadedmetadata)
EXPECTED (stripExtension(relativeURL(video.currentSrc)) == 'content/counting') OK
EXPECTED (isNaN(video.duration) == 'false') OK
END OF TEST
|