blob: 6d596a4cdb182e76ebaddc34f7a2863d55101f59 [file] [log] [blame]
<video controls></video>
<p>Test 'controls' attribute<p>
<script src=media-file.js></script>
<script src=video-test.js></script>
<script>
testExpected("video.controls", null, '!=');
waitForEvent('canplaythrough', function () {
testExpected("video.controls", null, '!=');
run("video.removeAttribute('controls')");
testExpected("video.controls", false, '==');
run("video.controls = true");
testExpected("video.getAttribute('controls')", "");
run("video.controls = false");
testExpected("video.controls", false, '==');
run("video.setAttribute('controls','controls')");
testExpected("video.controls", null, '!=');
endTest();
} );
video.src = findMediaFile("video", "content/test");
</script>