blob: 13eb58d4aa4bbafb2ce7f412536ee62be84e189c [file] [log] [blame]
RUN(video.src = findMediaFile("video", "content/test"))
EVENT(canplay)
RUN(internals.setMediaElementVolumeLocked(video, false))
EXPECTED (document.querySelector("video:volume-locked") == 'null') OK
EXPECTED (document.querySelector("video:not(:volume-locked)") == '[object HTMLVideoElement]') OK
RUN(internals.setMediaElementVolumeLocked(video, true))
EXPECTED (document.querySelector("video:volume-locked") == '[object HTMLVideoElement]') OK
EXPECTED (document.querySelector("video:not(:volume-locked)") == 'null') OK
END OF TEST