blob: 8dcd2c3832032fca0b321d6e1e1601e73a7ae64d [file] [log] [blame]
Test that the resource selection algorithm is restarted when load() is called, and that all <source> elements are reconsidered.
+++ Test initial networkState.
EXPECTED (video.networkState == '0') OK
+++ Add <source> elements to trigger loading, test networkState.
EXPECTED (video.networkState == '3') OK
EVENT(error)
EVENT(canplaythrough)
EXPECTED (stripExtension(relativeURL(video.currentSrc)) == 'content/test') OK
+++ Calling load().
EVENT(error)
EVENT(canplaythrough)
EXPECTED (stripExtension(relativeURL(video.currentSrc)) == 'content/test') OK
END OF TEST