OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | 4 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> |
5 <title>Test closed caption button visbility.</title> | 5 <title>Test closed caption button visbility.</title> |
6 <script src=media-file.js></script> | 6 <script src=media-file.js></script> |
7 <script src=media-controls.js></script> | 7 <script src=media-controls.js></script> |
8 <!-- TODO(philipj): Convert test to testharness.js. crbug.com/588956 | 8 <!-- TODO(foolip): Convert test to testharness.js. crbug.com/588956 |
9 (Please avoid writing new tests using video-test.js) --> | 9 (Please avoid writing new tests using video-test.js) --> |
10 <script src=video-test.js></script> | 10 <script src=video-test.js></script> |
11 </head> | 11 </head> |
12 <body> | 12 <body> |
13 <p>Tests that the closed captions button is not visible.</p> | 13 <p>Tests that the closed captions button is not visible.</p> |
14 <audio controls> | 14 <audio controls> |
15 <track src="track/captions-webvtt/captions-fast.vtt"> | 15 <track src="track/captions-webvtt/captions-fast.vtt"> |
16 </audio> | 16 </audio> |
17 <script> | 17 <script> |
18 findMediaElement(); | 18 findMediaElement(); |
19 audio.src = findMediaFile('audio', 'content/test'); | 19 audio.src = findMediaFile('audio', 'content/test'); |
20 audio.addEventListener('loadedmetadata', function() | 20 audio.addEventListener('loadedmetadata', function() |
21 { | 21 { |
22 testClosedCaptionsButtonVisibility(false); | 22 testClosedCaptionsButtonVisibility(false); |
23 endTest(); | 23 endTest(); |
24 }); | 24 }); |
25 </script> | 25 </script> |
26 </body> | 26 </body> |
27 </html> | 27 </html> |
OLD | NEW |