4 <title>video events - readyState property during loadedmetadata
</title>
5 <script src=
"../../w3cwrapper.js"></script>
8 <p><a href=
"http://dev.w3.org/html5/spec/Overview.html#mediaevents">spec reference
</a></p>
9 <video id=
"v" autoplay controls
>
13 var t
= async_test("video.readyState should be >= HAVE_METADATA during loadedmetadata event", {timeout
:30000});
14 var v
= document
.getElementById("v");
15 v
.addEventListener("loadedmetadata", function() {
17 assert_true(v
.readyState
>= v
.HAVE_METADATA
);
22 v
.src
= getVideoURI("http://media.w3.org/2010/05/video/movie_300") + "?" + new Date() + Math
.random();