[Modern Media Controls] Turn media/modern-media-controls/ios-inline-media-controls...
[WebKit-https.git] / LayoutTests / media / video-src-change-expected.txt
1
2 1. Test that an invalid src attribute fires an error when the file fails to load.
3 2. Test that changing src attribute triggers load after a load fails.
4 3. Test that changing src triggers load once a file is known to be valid.
5
6
7 EVENT(error)
8 EXPECTED (relativeURL(video.currentSrc) == 'bogus') OK
9 EXPECTED (video.networkState == '3') OK
10 EXPECTED (video.error.code == '4') OK
11
12
13 EVENT(loadedmetadata)
14 EXPECTED (stripExtension(relativeURL(video.currentSrc)) == 'content/test') OK
15 EXPECTED (isNaN(video.duration) == 'false') OK
16
17
18 EVENT(loadedmetadata)
19 EXPECTED (stripExtension(relativeURL(video.currentSrc)) == 'content/counting') OK
20 EXPECTED (isNaN(video.duration) == 'false') OK
21
22 END OF TEST
23