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: third_party/WebKit/LayoutTests/media/controls/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
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <title>This tests that controls do not fade out when the video is playing remote ly.</title> 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> 3 <script src="../../resources/testharness.js"></script>
4 <script src="../resources/testharnessreport.js"></script> 4 <script src="../../resources/testharnessreport.js"></script>
5 <script src="media-file.js"></script> 5 <script src="../media-file.js"></script>
6 <script src="media-controls.js"></script> 6 <script src="../media-controls.js"></script>
7 <video controls loop></video> 7 <video controls loop></video>
8 <script> 8 <script>
9 async_test(function(t) { 9 async_test(function(t) {
10 var video = document.querySelector("video"); 10 var video = document.querySelector("video");
11 video.src = findMediaFile("video", "content/test"); 11 video.src = findMediaFile("video", "../content/test");
12 12
13 video.onplaying = t.step_func(function() { 13 video.onplaying = t.step_func(function() {
14 internals.mediaPlayerPlayingRemotelyChanged(video, true); 14 internals.mediaPlayerPlayingRemotelyChanged(video, true);
15 runAfterHideMediaControlsTimerFired(function() { 15 runAfterHideMediaControlsTimerFired(function() {
16 var controls = mediaControlsButton(video, "panel"); 16 var controls = mediaControlsButton(video, "panel");
17 assert_equals(getComputedStyle(controls).opacity, "1"); 17 assert_equals(getComputedStyle(controls).opacity, "1");
18 18
19 internals.mediaPlayerPlayingRemotelyChanged(video, false); 19 internals.mediaPlayerPlayingRemotelyChanged(video, false);
20 runAfterHideMediaControlsTimerFired(function() { 20 runAfterHideMediaControlsTimerFired(function() {
21 assert_equals(getComputedStyle(controls).opacity, "0"); 21 assert_equals(getComputedStyle(controls).opacity, "0");
22 t.done(); 22 t.done();
23 }, video); 23 }, video);
24 }, video); 24 }, video);
25 }); 25 });
26 26
27 video.play(); 27 video.play();
28 }); 28 });
29 </script> 29 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698