blob: 56d63350e02e4d562fe072988cd56126de5335a2 [file] [log] [blame]
<video width=100 height=50 controls></video>
<!-- TODO(foolip): Convert test to testharness.js. crbug.com/588956
(Please avoid writing new tests using video-test.js) -->
<script src=video-test.js></script>
<script>
testExpected("video.width", 100);
testExpected("video.height", 50);
testExpected("video.offsetWidth", 100);
testExpected("video.offsetHeight", 50);
video.setAttribute('width', '200');
video.setAttribute('height', '100');
testExpected("video.width", 200);
testExpected("video.height", 100);
testExpected("video.offsetWidth", 200);
testExpected("video.offsetHeight", 100);
video.width = 400;
video.height = 200;
testExpected("video.getAttribute('width')", 400);
testExpected("video.getAttribute('height')", 200);
testExpected("video.offsetWidth", 400);
testExpected("video.offsetHeight", 200);
endTest();
</script>