OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <script src=../media-file.js></script> | 2 <script src=../media-file.js></script> |
| 3 <!-- TODO(philipj): Convert test to testharness.js. crbug.com/588956 |
| 4 (Please avoid writing new tests using video-test.js) --> |
3 <script src=../video-test.js></script> | 5 <script src=../video-test.js></script> |
4 <script src=../media-controls.js></script> | 6 <script src=../media-controls.js></script> |
5 <script> | 7 <script> |
6 | 8 |
7 function applyUserOverrideSettings() { | 9 function applyUserOverrideSettings() { |
8 if (window.internals) { | 10 if (window.internals) { |
9 internals.settings.setTextTrackTextColor("purple"); | 11 internals.settings.setTextTrackTextColor("purple"); |
10 internals.settings.setTextTrackTextSize("14px"); | 12 internals.settings.setTextTrackTextSize("14px"); |
11 } | 13 } |
12 } | 14 } |
(...skipping 28 matching lines...) Expand all Loading... |
41 findMediaElement(); | 43 findMediaElement(); |
42 video.src = findMediaFile('video', '../content/test'); | 44 video.src = findMediaFile('video', '../content/test'); |
43 video.currentTime = 0.1; | 45 video.currentTime = 0.1; |
44 waitForEvent('canplaythrough', verifyDefaultSettings); | 46 waitForEvent('canplaythrough', verifyDefaultSettings); |
45 } | 47 } |
46 | 48 |
47 </script> | 49 </script> |
48 <video> | 50 <video> |
49 <track src="captions-webvtt/styling.vtt" kind="captions" default> | 51 <track src="captions-webvtt/styling.vtt" kind="captions" default> |
50 </video> | 52 </video> |
OLD | NEW |