Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / http / tests / media / video-load-suspend.html
blob4970f728152b00b987839683a53e966ebddd9932
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 init()
10 findMediaElement();
11 run("video.src = file");
12 waitForEvent('loadstart', onLoadStart);
15 function onLoadStart()
17 waitForEvent('suspend', onSuspend);
20 function onSuspend()
22 testExpected("video.networkState", HTMLMediaElement.NETWORK_IDLE, "==");
23 endTest();
25 </script>
26 </head>
27 <body onload="init()">
28 <p>Test that the load eventually suspends and returns to NETWORK_IDLE.</p>
29 <video></video>
30 </body>
31 </html>