blob: 450848c1245b4e44187e92d92c7871bee5e0c723 [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