Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(39)

Unified Diff: LayoutTests/media/controls-drag-timebar-rendering.html

Issue 239113003: Use the media controls play button internal state for painting (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | LayoutTests/media/controls-drag-timebar-rendering-expected-mismatch.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/media/controls-drag-timebar-rendering.html
diff --git a/LayoutTests/media/controls-mute-with-controller.html b/LayoutTests/media/controls-drag-timebar-rendering.html
similarity index 50%
copy from LayoutTests/media/controls-mute-with-controller.html
copy to LayoutTests/media/controls-drag-timebar-rendering.html
index 9bbc9795fed76b4c4dcb657fe1aa3c0f708fb422..135ff577db7ef77e4bbe231547c51c273eab28e2 100644
--- a/LayoutTests/media/controls-mute-with-controller.html
+++ b/LayoutTests/media/controls-drag-timebar-rendering.html
@@ -1,12 +1,12 @@
-<!doctype html>
+<!DOCTYPE html>
<html>
<head>
- <title>media controls mute button with MediaController</title>
- <script src="media-file.js"></script>
- <script src="media-controls.js"></script>
+ <title>drag timebar reftest</title>
+ <script src=media-controls.js></script>
+ <script src=media-file.js></script>
</head>
<body>
- <video controls mediagroup="x"></video>
+ <video controls></video>
<script>
if (window.testRunner)
testRunner.waitUntilDone();
@@ -15,20 +15,16 @@
video.src = findMediaFile("video", "content/test");
video.addEventListener("loadeddata", function()
{
+ video.play();
+
if (window.eventSender) {
- // click the mute button
- var coords = mediaControlsButtonCoordinates(video, "mute-button");
+ var coords = mediaControlsButtonCoordinates(video, "timeline");
eventSender.mouseMoveTo(coords[0], coords[1]);
eventSender.mouseDown();
- eventSender.mouseUp();
-
- // wait for the volumechange event
- video.addEventListener("volumechange", function()
- {
- if (window.testRunner)
- testRunner.notifyDone();
- });
}
+
+ if (window.testRunner)
+ testRunner.notifyDone();
});
</script>
</body>
« no previous file with comments | « no previous file | LayoutTests/media/controls-drag-timebar-rendering-expected-mismatch.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698