Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / media / controls-cast-do-not-fade-out.html
blob698e5e7049bad08083a73a9b5feaaaaa6623c226
1 <!doctype html>
2 <html>
3 <head>
4 <title>This tests that controls do not fade out when the video is playing 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 loop></video>
13 <script>
14 var controls;
15 var test;
17 function playing()
19 internals.mediaPlayerPlayingRemotelyChanged(video, true);
20 runAfterHideMediaControlsTimerFired(function()
22 controls = mediaControlsButton(video, "panel");
23 testExpected("getComputedStyle(controls).opacity", 1);
25 consoleWrite("");
27 internals.mediaPlayerPlayingRemotelyChanged(video, false);
28 runAfterHideMediaControlsTimerFired(function()
30 testExpected("getComputedStyle(controls).opacity", 0);
32 consoleWrite("");
34 test.done();
36 video);
37 }, video);
40 async_test(function(t)
42 test = t;
43 findMediaElement();
44 video.src = findMediaFile("video", "content/test");
45 video.addEventListener("playing", playing);
46 video.play();
47 });
48 </script>
49 </body>
50 </html>