Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(18)

Unified Diff: LayoutTests/media/gc-during-load.html

Issue 439723003: Prevent GC of media elements that are delaying the load event (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | LayoutTests/media/gc-during-load-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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>
« no previous file with comments | « no previous file | LayoutTests/media/gc-during-load-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698