| This tests that in a standalone media document with audio content, the media element has non-zero |
| testRunner.waitUntilDone(); |
| document.getElementById("console").appendChild(document.createTextNode(message + "\n")); |
| var videoElement = document.getElementById("fr").contentDocument.querySelector("video"); |
| var elementWidth = videoElement.offsetWidth; |
| var elementHeight = videoElement.offsetHeight; |
| if (elementWidth > 0 && elementHeight > 0) |
| log("FAIL: the video element dimensions are " + elementWidth + " by " + elementHeight); |
| <iframe src="content/test.wav" id="fr" width=380 height=330 onload="frameLoaded()"></iframe> |