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

Side by Side Diff: third_party/WebKit/LayoutTests/media/track/track-cue-rendering-wider-than-controls.html

Issue 2268923003: Clean up textTrackDisplayElement utility function (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix Created 4 years, 3 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>Test that the cue root is not constrained by the controls/overlay.</title > 2 <title>Test that the cue root is not constrained by the controls/overlay.</title >
3 <script src="../media-file.js"></script> 3 <script src="../media-file.js"></script>
4 <script src="../media-controls.js"></script> 4 <script src="../media-controls.js"></script>
5 <script src="../../resources/testharness.js"></script> 5 <script src="../../resources/testharness.js"></script>
6 <script src="../../resources/testharnessreport.js"></script> 6 <script src="../../resources/testharnessreport.js"></script>
7 <style> 7 <style>
8 /* Enforce a max width on the controls enclosure, so 8 /* Enforce a max width on the controls enclosure, so
9 * that it doesn't fill the entire player width. 9 * that it doesn't fill the entire player width.
10 */ 10 */
(...skipping 12 matching lines...) Expand all
23 <script> 23 <script>
24 async_test(function(t) { 24 async_test(function(t) {
25 var video = document.querySelector("video"); 25 var video = document.querySelector("video");
26 video.src = findMediaFile("video", "../content/test"); 26 video.src = findMediaFile("video", "../content/test");
27 27
28 video.onseeked = t.step_func_done(function() { 28 video.onseeked = t.step_func_done(function() {
29 // The width of the controls depends on UA style, so verify that our ass umption holds. 29 // The width of the controls depends on UA style, so verify that our ass umption holds.
30 var controlsContainer = mediaControlsButton(video, "panel"); 30 var controlsContainer = mediaControlsButton(video, "panel");
31 assert_true(parseFloat(getComputedStyle(controlsContainer).width) <= 800 ); 31 assert_true(parseFloat(getComputedStyle(controlsContainer).width) <= 800 );
32 32
33 var cueRoot = textTrackDisplayElement(video); 33 var cueRoot = textTrackContainerElement(video);
34 assert_true(parseFloat(getComputedStyle(cueRoot).width) > 800); 34 assert_true(parseFloat(getComputedStyle(cueRoot).width) > 800);
35 }); 35 });
36 36
37 video.currentTime = 2; 37 video.currentTime = 2;
38 }); 38 });
39 </script> 39 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698