| <p>This tests if media controls play button is properly updated accroding to mouse clicks</p> |
| <script src=media-file.js></script> |
| <script src=media-controls.js></script> |
| var timeline = mediaControlsElement(internals.shadowRoot(video).firstChild.firstChild, '-webkit-media-controls-timeline'); |
| throw "Failed to find -webkit-media-controls-timeline"; |
| function canplaythrough() |
| window.testRunner.waitUntilDone(); |
| playButtonCoords = mediaControlsButtonCoordinates(video, "play-button"); |
| window.testRunner.notifyDone(); |
| eventSender.mouseMoveTo(playButtonCoords[0], playButtonCoords[1]); |
| window.testRunner.notifyDone(); |
| var requirePixelDump = true; |
| video.src = findMediaFile("video", "content/test"); |
| waitForEvent("canplaythrough", canplaythrough); |
| waitForEvent("playing", playing); |
| waitForEvent("pause", pause); |
| waitForEventAndFail("error"); |
| <script src=video-test.js></script> |