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/video-controls-visible-exiting-fullscreen.html

Issue 302603003: Cleanup tests related to controls hiding/fading in/out (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Tweaks. Created 6 years, 7 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 | « LayoutTests/media/video-controls-toggling.html ('k') | Source/core/html/shadow/MediaControlElements.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/media/video-controls-visible-exiting-fullscreen.html
diff --git a/LayoutTests/media/video-controls-visible-exiting-fullscreen.html b/LayoutTests/media/video-controls-visible-exiting-fullscreen.html
index 3cdd500cdc2646ba718f7067da4012b290af4721..55d6d923b383694285a0dfe345ec8f725ef0f51c 100644
--- a/LayoutTests/media/video-controls-visible-exiting-fullscreen.html
+++ b/LayoutTests/media/video-controls-visible-exiting-fullscreen.html
@@ -8,7 +8,6 @@
<script>
var panel;
var playButtonCoordinates;
- var fadeoutTime = 3500;
var count = 0;
function init()
@@ -22,7 +21,7 @@
{
waitForEvent(video, 'webkitfullscreenchange', onfullscreenchange);
- panel = mediaControlsElement(internals.shadowRoot(video).firstChild, "-webkit-media-controls-panel");
+ panel = mediaControlsButton(video, "panel");
if (window.eventSender) {
try {
playButtonCoordinates = mediaControlsButtonCoordinates(video, "play-button");
@@ -52,7 +51,7 @@
{
switch (count) {
case 0:
- setTimeout(continueTest, fadeoutTime);
+ runAfterControlsHidden(continueTest, video);
break;
case 1:
consoleWrite("");
« no previous file with comments | « LayoutTests/media/video-controls-toggling.html ('k') | Source/core/html/shadow/MediaControlElements.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698