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 <script src=../video-test.js></script> | 7 <script src=../video-test.js></script> |
8 <script> | 8 <script> |
9 | 9 |
10 function forceGC() | 10 function forceGC() |
11 { | 11 { |
12 if (window.GCController) | 12 if (window.GCController) |
13 return GCController.collect(); | 13 return GCController.collectAll(); |
14 | 14 |
15 // Force garbage collection | 15 // Force garbage collection |
16 for (var ndx = 0; ndx < 99000; ndx++) | 16 for (var ndx = 0; ndx < 99000; ndx++) |
17 var str = new String("1234"); | 17 var str = new String("1234"); |
18 } | 18 } |
19 | 19 |
20 function trackLoaded() | 20 function trackLoaded() |
21 { | 21 { |
22 findMediaElement(); | 22 findMediaElement(); |
23 | 23 |
(...skipping 16 matching lines...) Expand all Loading... |
40 | 40 |
41 </script> | 41 </script> |
42 </head> | 42 </head> |
43 <body> | 43 <body> |
44 <p>Ensure that a TextTrack won't be collected if it has a custom propert
y.</p> | 44 <p>Ensure that a TextTrack won't be collected if it has a custom propert
y.</p> |
45 <video> | 45 <video> |
46 <track src="captions-webvtt/tc013-settings.vtt" kind="captions" onlo
ad="trackLoaded()" default> | 46 <track src="captions-webvtt/tc013-settings.vtt" kind="captions" onlo
ad="trackLoaded()" default> |
47 </video> | 47 </video> |
48 </body> | 48 </body> |
49 </html> | 49 </html> |
OLD | NEW |