Index: LayoutTests/media/gc-pending-event-inactive-document.html |
diff --git a/LayoutTests/media/gc-pending-event-inactive-document.html b/LayoutTests/media/gc-pending-event-inactive-document.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..454cee142627def762eebbb2daa358f5f1b86576 |
--- /dev/null |
+++ b/LayoutTests/media/gc-pending-event-inactive-document.html |
@@ -0,0 +1,19 @@ |
+<!DOCTYPE html> |
+<title>GC with a pending event in an inactive document</title> |
+<script src="../resources/testharness.js"></script> |
+<script src="../resources/testharnessreport.js"></script> |
+<script src="media-file.js"></script> |
+<script> |
+async_test(function(t) |
+{ |
+ var a = document.createElement("audio"); |
+ a.volume = 0; // queues a task to fire volumechange |
+ |
+ var doc = document.implementation.createHTMLDocument(); |
+ doc.body.appendChild(a); |
+ |
+ a.onvolumechange = t.step_func_done(); |
+ a = doc = null; |
+ gc(); |
+}); |
+</script> |