blob: 2f576e25ec9031f23ff8c6372557a137eefa1d0f [file] [log] [blame]
<html>
<body>
<video controls autobuffer></video>
<script src=video-test.js></script>
<script>
consoleWrite("");
consoleWrite("++ Test initial attribute value");
testExpected("video.autobuffer", true);
testExpected("video.getAttribute('autobuffer')", null, "!=");
consoleWrite("");
consoleWrite("++ Set to false via DOM");
run("video.autobuffer = false;");
testExpected("video.getAttribute('autobuffer')", null);
testExpected("video.autobuffer", false);
consoleWrite("");
consoleWrite("++ Set to true via DOM");
run("video.autobuffer = true;");
testExpected("video.autobuffer", true);
testExpected("video.getAttribute('autobuffer')", null, "!=");
consoleWrite("");
consoleWrite("++ Remove attribute");
run("video.removeAttribute('autobuffer')");
testExpected("video.autobuffer", false);
consoleWrite("");
consoleWrite("++ Set to true via attribute");
run("video.setAttribute('autobuffer', true);");
testExpected("video.autobuffer", true);
testExpected("video.getAttribute('autobuffer')", null, "!=");
consoleWrite("");
endTest();
</script>
</body>
</html>