Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / http / tests / media / video-load-twice.html
blob0e9b5069236e24002dc3c38ec6b380e7ca7d3075
1 <html>
2 <head>
3 <script src=../../media-resources/media-file.js></script>
4 <script src=../../media-resources/video-test.js></script>
5 <script>
6 var file = findMediaFile("video", "http://127.0.0.1:8000/resources/test");
8 function createVideo() {
9 var video = document.createElement("video");
10 document.body.appendChild(video);
11 findMediaElement();
12 waitForEvent('loadedmetadata');
13 waitForEvent('loadeddata');
14 waitForEvent('canplay');
17 function firstCanPlayThrough() {
18 document.body.removeChild(video);
19 createVideo();
20 waitForEventOnce('canplaythrough', endTest);
21 run("video.src = file");
24 function init() {
25 createVideo();
26 waitForEventOnce('canplaythrough', firstCanPlayThrough);
27 run("video.src = file");
29 </script>
30 </head>
31 <body onload="init()">
32 </body>
33 </html>