OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <title>GC with a pending event in an inactive document</title> | 2 <title>Verify that a pending event prevents GC</title> |
3 <script src="../resources/testharness.js"></script> | 3 <script src="../resources/testharness.js"></script> |
4 <script src="../resources/testharnessreport.js"></script> | 4 <script src="../resources/testharnessreport.js"></script> |
5 <script src="media-file.js"></script> | 5 <script src="media-file.js"></script> |
6 <script> | 6 <script> |
7 async_test(function(t) | 7 async_test(function(t) |
8 { | 8 { |
9 var a = document.createElement("audio"); | 9 var a = document.createElement("audio"); |
10 a.volume = 0; // queues a task to fire volumechange | 10 a.volume = 0; // queues a task to fire volumechange |
11 | 11 |
12 var doc = document.implementation.createHTMLDocument(); | |
13 doc.body.appendChild(a); | |
14 | |
15 a.onvolumechange = t.step_func_done(); | 12 a.onvolumechange = t.step_func_done(); |
16 a = doc = null; | 13 a = null; |
17 gc(); | 14 gc(); |
18 }); | 15 }); |
19 </script> | 16 </script> |
OLD | NEW |