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

Side by Side Diff: third_party/WebKit/LayoutTests/media/track/track-cue-empty-crash.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 <script src=../media-file.js></script> 4 <script src=../media-file.js></script>
5 <!-- TODO(philipj): Convert test to testharness.js. crbug.com/588956
6 (Please avoid writing new tests using video-test.js) -->
5 <script src=../video-test.js></script> 7 <script src=../video-test.js></script>
6 <script> 8 <script>
7 var fragment; 9 var fragment;
8 function startTest() 10 function startTest()
9 { 11 {
10 var emptyCue = new VTTCue(0, 0, ""); 12 var emptyCue = new VTTCue(0, 0, "");
11 fragment = emptyCue.getCueAsHTML(); 13 fragment = emptyCue.getCueAsHTML();
12 14
13 consoleWrite("** The getCueAsHTML() method should return a document fragment **"); 15 consoleWrite("** The getCueAsHTML() method should return a document fragment **");
14 testExpected("fragment", null, "!="); 16 testExpected("fragment", null, "!=");
(...skipping 10 matching lines...) Expand all
25 endTest(); 27 endTest();
26 } 28 }
27 </script> 29 </script>
28 </head> 30 </head>
29 31
30 <body onload="startTest()"> 32 <body onload="startTest()">
31 <p>Tests that having an empty cue does not crash when calling getCueAsHT ML().</p> 33 <p>Tests that having an empty cue does not crash when calling getCueAsHT ML().</p>
32 <video controls /> 34 <video controls />
33 </body> 35 </body>
34 </html> 36 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698