1 1. Test that an invalid src attribute fires an error when the file fails to load.
2 2. Test that changing src attribute triggers load after a load fails.
3 3. Test that changing src triggers load once a file is known to be valid.
7 EXPECTED (relativeURL(video.currentSrc) == 'bogus') OK
8 EXPECTED (video.networkState == '3') OK
9 EXPECTED (video.error.code == '4') OK
13 EXPECTED (stripExtension(relativeURL(video.currentSrc)) == 'content/test') OK
14 EXPECTED (isNaN(video.duration) == 'false') OK
18 EXPECTED (stripExtension(relativeURL(video.currentSrc)) == 'content/counting') OK
19 EXPECTED (isNaN(video.duration) == 'false') OK