Unregister from GCM when the only GCM app is removed
[chromium-blink-merge.git] / chrome / test / data / media / html / media_jerky.html
blobd0bd335e15569663224f03fd0d7222d5506c6969
1 <!-- Used by tests which only need a basic playback. -->
2 <!DOCTYPE html>
3 <html lang="en-US">
4 <head>
5 <title>Basic Media Playback Test</title>
6 </head>
8 <body>
9 <div><video autoplay preload></video></div>
10 </body>
12 <script type="text/javascript">
13 var div = document.querySelector('div');
14 var video = document.querySelector('video');
16 video.addEventListener('playing', function(event) {
17 // Notify PyAuto that the video has started playing..
18 window.domAutomationController.send(true);
19 }, false);
21 function startTest(url) {
22 video.src = url;
25 function stopTest() {
26 video.src = '';
27 window.domAutomationController.send(true);
30 function initializeTest(width, height) {
31 // Setup calibration area for Jerky tool.
32 div.style.width = width + 'px';
33 div.style.height = height + 'px';
34 div.style.backgroundColor = '#333333';
35 window.domAutomationController.send(true);
37 </script>
38 </html>