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 <script src=../media-file.js></script> | 6 <script src=../media-file.js></script> |
| 7 <!-- TODO(philipj): Convert test to testharness.js. crbug.com/588956 |
| 8 (Please avoid writing new tests using video-test.js) --> |
7 <script src=../video-test.js></script> | 9 <script src=../video-test.js></script> |
8 <script> | 10 <script> |
9 | 11 |
10 function trackLoaded() | 12 function trackLoaded() |
11 { | 13 { |
12 findMediaElement(); | 14 findMediaElement(); |
13 var expected = | 15 var expected = |
14 { | 16 { |
15 length : 3, | 17 length : 3, |
16 tests: | 18 tests: |
17 [ | 19 [ |
18 { | 20 { |
19 property : "getCueAsHTML().textContent", | 21 property : "getCueAsHTML().textContent", |
20 values : ["Bear is Coming!!!!!\nAnd what kind of a b
ear it is - just have look.", | 22 values : ["Bear is Coming!!!!!\nAnd what kind of a b
ear it is - just have look.", |
21 "\n I said Bear is coming!!!!\n I said B
ear is still coming!!!!\n", | 23 "\n I said Bear is coming!!!!\n I said B
ear is still coming!!!!\n", |
22 "\n I said Bear is coming now!!!!\n \n
\n"], | 24 "\n I said Bear is coming now!!!!\n \n
\n"], |
23 }, | 25 }, |
24 { | 26 { |
25 property : "text", | 27 property : "text", |
26 values : ["<h1>Bear is Coming!!!!!</h1>\n<p>And what
kind of a bear it is - just have <a href=\"webpage.html\">look</a>.</p>", | 28 values : ["<h1>Bear is Coming!!!!!</h1>\n<p>And what
kind of a bear it is - just have <a href=\"webpage.html\">look</a>.</p>", |
27 "<ul>\n <li>I said Bear is coming!!!!</li
>\n <li>I said Bear is still coming!!!!</li>\n</ul>", | 29 "<ul>\n <li>I said Bear is coming!!!!</li
>\n <li>I said Bear is still coming!!!!</li>\n</ul>", |
28 "<ol>\n <li>I said Bear is coming now!!!!
</li>\n <li><img src=\"bear.png\" alt=\"mighty bear\"></li>\n <li><video src=\
"bear_ad.webm\" controls></video></li>\n</ol>"], | 30 "<ol>\n <li>I said Bear is coming now!!!!
</li>\n <li><img src=\"bear.png\" alt=\"mighty bear\"></li>\n <li><video src=\
"bear_ad.webm\" controls></video></li>\n</ol>"], |
29 }, | 31 }, |
30 ], | 32 ], |
31 }; | 33 }; |
32 testCues(0, expected); | 34 testCues(0, expected); |
33 | 35 |
34 endTest(); | 36 endTest(); |
35 } | 37 } |
36 | 38 |
37 </script> | 39 </script> |
38 </head> | 40 </head> |
39 <body> | 41 <body> |
40 <p>Tests that unsupported markup is properly ignored.</p> | 42 <p>Tests that unsupported markup is properly ignored.</p> |
41 <video> | 43 <video> |
42 <track src="captions-webvtt/tc028-unsupported-markup.vtt" onload="tr
ackLoaded()" default> | 44 <track src="captions-webvtt/tc028-unsupported-markup.vtt" onload="tr
ackLoaded()" default> |
43 </video> | 45 </video> |
44 </body> | 46 </body> |
45 </html> | 47 </html> |
OLD | NEW |