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 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 start() | 22 function start() |
21 { | 23 { |
22 findMediaElement(); | 24 findMediaElement(); |
23 | 25 |
24 consoleWrite("** Add a custom property to a track."); | 26 consoleWrite("** Add a custom property to a track."); |
(...skipping 13 matching lines...) Expand all Loading... |
38 | 40 |
39 </script> | 41 </script> |
40 </head> | 42 </head> |
41 <body onload="start()"> | 43 <body onload="start()"> |
42 <p>Ensure that a TrackList won't be collected if it has custom propertie
s.</p> | 44 <p>Ensure that a TrackList won't be collected if it has custom propertie
s.</p> |
43 <video> | 45 <video> |
44 <track> | 46 <track> |
45 </video> | 47 </video> |
46 </body> | 48 </body> |
47 </html> | 49 </html> |
OLD | NEW |