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