Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / media / W3C / video / readyState / readyState_during_loadeddata.html
blob3e439d4667b1c1e07ded576949c38ae03ccc3357
1 <!doctype html>
2 <html>
3 <head>
4 <title>video events - readyState property during loadeddata</title>
5 <script src="../../w3cwrapper.js"></script>
6 </head>
7 <body>
8 <p><a href="http://dev.w3.org/html5/spec/Overview.html#mediaevents">spec reference</a></p>
9 <video id="v" autoplay controls>
10 </video>
11 <div id="log"></div>
12 <script>
13 var t = async_test("video.readyState should be >= HAVE_CURRENT_DATA during loadeddata event", {timeout:30000});
14 var v = document.getElementById("v");
15 v.addEventListener("loadeddata", function() {
16 t.step(function() {
17 assert_true(v.readyState >= v.HAVE_CURRENT_DATA);
18 });
19 t.done();
20 v.pause();
21 });
22 v.src = getVideoURI("http://media.w3.org/2010/05/video/movie_300") + "?" + new Date() + Math.random();
23 </script>
24 </body>
25 </html>