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

Side by Side Diff: third_party/WebKit/LayoutTests/media/track/text-track-is-reachable.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, 9 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 forceGC() 12 function forceGC()
11 { 13 {
12 if (window.GCController) 14 if (window.GCController)
13 return GCController.collectAll(); 15 return GCController.collectAll();
14 16
15 // Force garbage collection 17 // Force garbage collection
16 for (var ndx = 0; ndx < 99000; ndx++) 18 for (var ndx = 0; ndx < 99000; ndx++)
17 var str = new String("1234"); 19 var str = new String("1234");
18 } 20 }
19 21
20 function trackLoaded() 22 function trackLoaded()
21 { 23 {
22 findMediaElement(); 24 findMediaElement();
23 25
24 consoleWrite("** Validate."); 26 consoleWrite("** Validate.");
(...skipping 15 matching lines...) Expand all
40 42
41 </script> 43 </script>
42 </head> 44 </head>
43 <body> 45 <body>
44 <p>Ensure that a TextTrack won't be collected if it has a custom propert y.</p> 46 <p>Ensure that a TextTrack won't be collected if it has a custom propert y.</p>
45 <video> 47 <video>
46 <track src="captions-webvtt/tc013-settings.vtt" kind="captions" onlo ad="trackLoaded()" default> 48 <track src="captions-webvtt/tc013-settings.vtt" kind="captions" onlo ad="trackLoaded()" default>
47 </video> 49 </video>
48 </body> 50 </body>
49 </html> 51 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698