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

Unified Diff: LayoutTests/media/gc-pending-event-inactive-document.html

Issue 587683002: Ensure that hasPendingActivity() is false for stopped media elements (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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 | « no previous file | Source/core/html/HTMLMediaElement.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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>
« no previous file with comments | « no previous file | Source/core/html/HTMLMediaElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698