blob: 7eff623ee8d297d3298d5b45678ea20a6b2a91ae [file] [log] [blame]
<video> element with src="" should invoke media element's load algorithm and should fire 'error' event. Network state should be NETWORK_NO_SOURCE and set error to MEDIA_ERR_SRC_NOT_SUPPORTED.
** <video> with valid non-empty 'src' attribute**
EVENT(loadstart)
EVENT(loadedmetadata)
EVENT(loadeddata)
EVENT(canplaythrough)
** <video> with empty src attribute**
RUN(video.src = "")
EVENT(abort)
EVENT(emptied)
EVENT(loadstart)
EVENT(error)
'error' event:
EXPECTED (event.target == '[object HTMLVideoElement]') OK
EXPECTED (video.error.code == '4') OK
EXPECTED (video.networkState == '3') OK
END OF TEST