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

Side by Side Diff: third_party/WebKit/LayoutTests/media/controls/controls-cast-button-narrow.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>media controls cast button</title> 2 <title>media controls cast button</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 width="100" height="200" controls></video> 7 <video width="100" height="200" controls></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.onloadedmetadata = t.step_func(function() { 13 video.onloadedmetadata = t.step_func(function() {
14 // Pretend we have a cast device 14 // Pretend we have a cast device
15 internals.mediaPlayerRemoteRouteAvailabilityChanged(video, true); 15 internals.mediaPlayerRemoteRouteAvailabilityChanged(video, true);
16 16
17 // Video should not have a cast button since the video is too narrow 17 // Video should not have a cast button since the video is too narrow
18 assert_false(isVisible(castButton(video)), "button should not be visible "); 18 assert_false(isVisible(castButton(video)), "button should not be visible ");
19 19
20 // It should not have an overlay cast button too. Instead, the button 20 // It should not have an overlay cast button too. Instead, the button
21 // should appear in the overflow menu. Tested somewhere else. 21 // should appear in the overflow menu. Tested somewhere else.
(...skipping 14 matching lines...) Expand all
36 internals.mediaPlayerRemoteRouteAvailabilityChanged(video, false ); 36 internals.mediaPlayerRemoteRouteAvailabilityChanged(video, false );
37 video.width = 500; 37 video.width = 500;
38 testRunner.layoutAndPaintAsyncThen(t.step_func_done(function() { 38 testRunner.layoutAndPaintAsyncThen(t.step_func_done(function() {
39 assert_false(isVisible(castButton(video)), "button should no t be visible"); 39 assert_false(isVisible(castButton(video)), "button should no t be visible");
40 })); 40 }));
41 })); 41 }));
42 })); 42 }));
43 }); 43 });
44 }); 44 });
45 </script> 45 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698