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

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

Issue 2846713002: [Media] Added feature flag for new remote playback pipeline (Closed)
Patch Set: Fixed failing layout tests Created 3 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 unified diff | Download patch
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <title>This tests that controls do not fade out when the video is playing remote ly.</title>
3 <script src="../resources/testharness.js"></script>
4 <script src="../resources/testharnessreport.js"></script>
5 <script src="media-file.js"></script>
6 <script src="media-controls.js"></script>
7 <video controls loop></video>
8 <script>
9 async_test(function(t) {
10 var video = document.querySelector("video");
11 video.src = findMediaFile("video", "content/test");
12
13 video.onplaying = t.step_func(function() {
14 internals.mediaPlayerPlayingRemotelyChanged(video, true);
15 runAfterHideMediaControlsTimerFired(function() {
16 var controls = mediaControlsButton(video, "panel");
17 assert_equals(getComputedStyle(controls).opacity, "1");
18
19 internals.mediaPlayerPlayingRemotelyChanged(video, false);
20 runAfterHideMediaControlsTimerFired(function() {
21 assert_equals(getComputedStyle(controls).opacity, "0");
22 t.done();
23 }, video);
24 }, video);
25 });
26
27 video.play();
28 });
29 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698