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

Unified Diff: LayoutTests/media/gc-while-delaying-the-load-event.html

Issue 552303006: Prevent more script-observable cases of HTMLMediaElement GC (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: make gc-while-seeking.html non-flaky Created 6 years, 3 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 | « LayoutTests/media/avtrack/video-track-selected.html ('k') | LayoutTests/media/gc-while-playing.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/media/gc-while-delaying-the-load-event.html
diff --git a/LayoutTests/media/gc-while-delaying-the-load-event.html b/LayoutTests/media/gc-while-delaying-the-load-event.html
new file mode 100644
index 0000000000000000000000000000000000000000..d4c4b7c2b83a3d174a062194f7a6c68e15eb6cc1
--- /dev/null
+++ b/LayoutTests/media/gc-while-delaying-the-load-event.html
@@ -0,0 +1,19 @@
+<!DOCTYPE html>
+<title>GC while the delaying-the-load-event flag is set</title>
+<script src="../resources/testharness.js"></script>
+<script src="../resources/testharnessreport.js"></script>
+<script>
+async_test(function(t)
+{
+ var a = document.createElement("audio");
+ a.foo = "bar";
+ a.appendChild(document.createElement("source"));
+ a.onloadstart = t.step_func(function(e)
+ {
+ assert_equals(e.target.foo, "bar");
+ t.done();
+ });
+ a = null;
+ gc();
+});
+</script>
« no previous file with comments | « LayoutTests/media/avtrack/video-track-selected.html ('k') | LayoutTests/media/gc-while-playing.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698