1 <video id="vid" src="content/test.wav" onloadedmetadata="loadedMetadata()"></video>
3 This tests the intrinsic size of a video element is the default 300×150 before metadata is
4 loaded, and also after metadata is loaded for an audio-only file.
6 <pre id="console"></pre>
8 if (window.testRunner) {
9 testRunner.dumpAsText();
10 testRunner.waitUntilDone();
15 document.getElementById("console").appendChild(document.createTextNode(message + "\n"));
18 var videoElement = document.getElementById("vid");
19 log("Initial dimensions: " + videoElement.offsetWidth + "\u00d7" + videoElement.offsetHeight);
21 function loadedMetadata()
23 log("Dimensions after metadata loaded: " + videoElement.offsetWidth + "\u00d7" + videoElement.offsetHeight);
24 testRunner.notifyDone();