2010-12-14 Cosmin Truta <ctruta@chromium.org>
[WebKit-https.git] / LayoutTests / platform / chromium-mac / media / video-load-networkState-expected.txt
1 Test that setting src to an invalid url triggers load(), which sets networkState to NETWORK_NO_SOURCE. Setting src to a valid url should then trigger the loading events and end up with networkState >= NETWORK_LOADING.
2
3
4 EXPECTED (video.networkState == '0') OK
5 RUN(video.src = 'bogus/movie.mpg')
6 EVENT(loadstart)
7 EXPECTED (video.networkState == '3') OK
8
9 RUN(video.src = 'content/test.ogv')
10 EVENT(loadstart)
11 EVENT(loadedmetadata)
12 EVENT(loadeddata)
13 EVENT(canplay)
14 EVENT(canplaythrough)
15 EXPECTED (video.networkState >= '1') OK
16 END OF TEST
17