Index: LayoutTests/media/gc-during-load.html |
diff --git a/LayoutTests/media/gc-during-load.html b/LayoutTests/media/gc-during-load.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..4f3181ade6d1aa7a29616986f6ca17267afa9d03 |
--- /dev/null |
+++ b/LayoutTests/media/gc-during-load.html |
@@ -0,0 +1,12 @@ |
+<!DOCTYPE html> |
+<script src="../resources/js-test.js"></script> |
+<script src="media-file.js"></script> |
+<script> |
+description("Garbage collection while waiting for loadedmetadata"); |
+window.jsTestIsAsync = true; |
+var video = document.createElement("video"); |
+video.src = findMediaFile("video", "content/test"); |
+video.onloadedmetadata = finishJSTest; |
+video = null; |
+gc(); |
+</script> |