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

Side by Side Diff: LayoutTests/media/controls-cast-do-not-fade-out.html

Issue 650893002: [Cast] Disable autohide of media controls for remote playback (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Added LayoutTest Created 6 years, 2 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 unified diff | Download patch
OLDNEW
(Empty)
1 <!doctype html>
2 <html>
3 <head>
4 <title>This tests that controls do not fade out when the video is playin g remotely.</title>
5 <script src="../resources/testharness.js"></script>
6 <script src="../resources/testharnessreport.js"></script>
7 <script src="media-file.js"></script>
8 <script src="media-controls.js"></script>
9 <script src="video-test.js"></script>
10 </head>
11 <body>
12 <video controls></video>
13 <script>
14 var controls;
15 var test;
16
17 function playing()
18 {
19 internals.mediaPlayerPlayingRemotelyChanged(video, true);
20 runAfterHideMediaControlsTimerFired(function()
21 {
22 controls = mediaControlsButton(video, "panel");
23 testExpected("getComputedStyle(controls).opacity", 1);
24
25 consoleWrite("");
26
27 internals.mediaPlayerPlayingRemotelyChanged(video, false);
28 runAfterHideMediaControlsTimerFired(function()
29 {
30 testExpected("getComputedStyle(controls).opacity", 0);
31
32 consoleWrite("");
33
34 test.done();
35 },
36 video);
37 }, video);
38 }
39
40 function loadedmetadata()
41 {
42 video.addEventListener("playing", playing);
43 video.play();
44 }
45
46 async_test(function(t)
47 {
48 test = t;
49 findMediaElement();
50 video.src = findMediaFile("video", "content/test");
51 video.addEventListener("loadedmetadata", loadedmetadata);
Peter Beverloo 2014/10/13 16:37:24 Can we just bind to the |playing| event here, call
whywhat 2014/10/13 16:56:28 Done.
52 });
53 </script>
54 </body>
55 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/media/controls-cast-do-not-fade-out-expected.txt » ('j') | Source/core/testing/Internals.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698