Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(731)

Side by Side Diff: third_party/WebKit/LayoutTests/media/track/track-webvtt-tc028-unsupported-markup.html

Issue 1715303002: Add TODOs to convert from video-test.js to testharness.js (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add bug ref Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698