OLD | NEW |
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 Loading... |
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> |
OLD | NEW |