blob: 0c017e1114269f18bce37ac6d067b142d528b1bb [file] [log] [blame]
Test that "no auto-loading restriction" only allows metadata to load in spite of preload='auto'.
** setting video.src
EXPECTED (video.preload == 'auto') OK
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