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

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

Issue 204803002: Make scrubbing a MediaControls-internal concept (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: check mediaControllerInterface().paused() Created 6 years, 9 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-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/media/controls-drag-timebar.html
diff --git a/LayoutTests/media/controls-drag-timebar.html b/LayoutTests/media/controls-drag-timebar.html
index 2686eb07c0bd1420e1c1231a23ff72e89c410cee..d2f546b09e9134f256ab39ce9a7c12fd6625400b 100644
--- a/LayoutTests/media/controls-drag-timebar.html
+++ b/LayoutTests/media/controls-drag-timebar.html
@@ -19,8 +19,9 @@
seekCount = 0;
moveCount = 0;
- if (window.eventSender) {
+ testExpected("video.paused", false);
+ if (window.eventSender) {
var seekCoords;
try {
seekCoords = mediaControlsButtonCoordinates(video, "timeline");
@@ -35,6 +36,8 @@
eventSender.mouseMoveTo(x, y);
eventSender.mouseDown();
+ testExpected("video.paused", true);
+
// Drag mouse off of the slider thumb to make sure it continues to track
y += 100;
eventSender.mouseMoveTo(x, y);
@@ -56,24 +59,31 @@
function seeked()
{
+
++seekCount;
if (seekCount < 6) {
window.setTimeout("move()", 100);
return;
}
- if (window.eventSender)
+ if (window.eventSender) {
+ testExpected("video.paused", true);
eventSender.mouseUp();
+ }
+
+ testExpected("video.paused", false);
+
endTest();
}
function start()
{
findMediaElement();
- waitForEventOnce('canplaythrough', test);
+ waitForEventOnce('playing', test);
waitForEvent('seeked', seeked);
video.src = findMediaFile("video", "content/test");
- }
+ video.play();
+ }
</script>
</head>
« no previous file with comments | « no previous file | LayoutTests/media/controls-drag-timebar-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698