| 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 | 5 |
| 6 <style> | 6 <style> |
| 7 -webkit-media-text-track-display { display: block; } | 7 -webkit-media-text-track-display { display: block; } |
| 8 </style> | 8 </style> |
| 9 | 9 |
| 10 <script src=../media-file.js></script> | 10 <script src=../media-file.js></script> |
| 11 <!-- TODO(philipj): Convert test to testharness.js. crbug.com/588956 |
| 12 (Please avoid writing new tests using video-test.js) --> |
| 11 <script src=../video-test.js></script> | 13 <script src=../video-test.js></script> |
| 12 <script> | 14 <script> |
| 13 function startTest() | 15 function startTest() |
| 14 { | 16 { |
| 15 findMediaElement(); | 17 findMediaElement(); |
| 16 video.src = findMediaFile('video', '../content/test'); | 18 video.src = findMediaFile('video', '../content/test'); |
| 17 | 19 |
| 18 consoleWrite("** Add a text track to the video element **"); | 20 consoleWrite("** Add a text track to the video element **"); |
| 19 video.addTextTrack("captions", "regular captions track", "en"); | 21 video.addTextTrack("captions", "regular captions track", "en"); |
| 20 | 22 |
| (...skipping 10 matching lines...) Expand all Loading... |
| 31 endTest(); | 33 endTest(); |
| 32 } | 34 } |
| 33 </script> | 35 </script> |
| 34 </head> | 36 </head> |
| 35 | 37 |
| 36 <body onload="startTest()"> | 38 <body onload="startTest()"> |
| 37 <p>Tests that setting display to block does not crash the browser.</p> | 39 <p>Tests that setting display to block does not crash the browser.</p> |
| 38 <video controls /> | 40 <video controls /> |
| 39 </body> | 41 </body> |
| 40 </html> | 42 </html> |
| OLD | NEW |