blob: 34b224614d51f2f136731529ec6fecea4054d03b [file] [log] [blame]
Test that "no auto-loading restriction" only allows metadata to load in spite of preload='auto'.
EXPECTED (video.preload == 'auto') OK
** setting video.src
RUN(internals.setMediaElementRestrictions(video, 'AutoPreloadingNotPermitted'))
EVENT(loadedmetadata)
EXPECTED (video.readyState < '2') OK
** Pausing...
** 250ms timer fired
EXPECTED (video.readyState < '2') OK
EXPECTED (video.buffered.length == '0') OK
RUN(video.play())
EVENT(canplaythrough)
END OF TEST