<!doctype html> | |
<html> | |
<head> | |
<title>video.readyState - default state</title> | |
<script src="../../w3cwrapper.js"></script> | |
</head> | |
<body> | |
<p><a href="http://dev.w3.org/html5/spec/Overview.html#dom-media-networkstate">spec reference</a></p> | |
<video id="v"> | |
</video> | |
<div id="log"></div> | |
<script> | |
test(function() { | |
var v = document.getElementById("v"); | |
assert_equals( | |
v.readyState, | |
v.HAVE_NOTHING, | |
"videoElement.readyState should be HAVE_NOTHING to begin with"); | |
}); | |
</script> | |
</body> | |
</html> |