| OLD | NEW |
| 1 <!doctype html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <title>media controls mute button with MediaController</title> | 4 <title>drag timebar reftest</title> |
| 5 <script src="media-file.js"></script> | 5 <script src=media-controls.js></script> |
| 6 <script src=media-file.js></script> |
| 6 </head> | 7 </head> |
| 7 <body> | 8 <body> |
| 8 <video controls muted></video> | 9 <video controls></video> |
| 9 <script> | 10 <script> |
| 10 if (window.testRunner) | 11 if (window.testRunner) |
| 11 testRunner.waitUntilDone(); | 12 testRunner.waitUntilDone(); |
| 12 | 13 |
| 13 var video = document.querySelector("video"); | 14 var video = document.querySelector("video"); |
| 14 video.src = findMediaFile("video", "content/test"); | 15 video.src = findMediaFile("video", "content/test"); |
| 15 video.addEventListener("loadeddata", function() | 16 video.addEventListener("loadeddata", function() |
| 16 { | 17 { |
| 18 if (window.eventSender) { |
| 19 var coords = mediaControlsButtonCoordinates(video, "timeline
"); |
| 20 eventSender.mouseMoveTo(coords[0], coords[1]); |
| 21 eventSender.mouseDown(); |
| 22 } |
| 23 |
| 17 if (window.testRunner) | 24 if (window.testRunner) |
| 18 testRunner.notifyDone(); | 25 testRunner.notifyDone(); |
| 19 }); | 26 }); |
| 20 </script> | 27 </script> |
| 21 </body> | 28 </body> |
| 22 </html> | 29 </html> |
| OLD | NEW |