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

Unified Diff: LayoutTests/media/avtrack/gc.html

Issue 284513003: Implement AudioTrack, AudioTrackList, VideoTrack, and VideoTrackList (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: nits Created 6 years, 6 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/forget-on-load.html ('k') | LayoutTests/media/avtrack/getTrackById.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/media/avtrack/gc.html
diff --git a/LayoutTests/media/avtrack/gc.html b/LayoutTests/media/avtrack/gc.html
new file mode 100644
index 0000000000000000000000000000000000000000..9338e5037ab999a88095fa53c1c497dd5a5629b5
--- /dev/null
+++ b/LayoutTests/media/avtrack/gc.html
@@ -0,0 +1,36 @@
+<!doctype html>
+<html>
+ <head>
+ <title>AudioTrack &amp; VideoTrack garbage collection</title>
+ <script src="../../resources/testharness.js"></script>
+ <script src="../../resources/testharnessreport.js"></script>
+ <script src="../media-file.js"></script>
+ </head>
+ <body>
+ <div id="log"></div>
+ <script>
+ async_test(function(t)
+ {
+ var e = document.createElement('video');
+ e.src = findMediaFile('video', '../content/test');
+
+ e.addEventListener('loadedmetadata', t.step_func(function()
+ {
+ e.audioTracks.foo = 'foo';
+ e.audioTracks[0].bar = 'bar';
+ e.videoTracks.baz = 'baz';
+ e.videoTracks[0].qux = 'qux';
+
+ gc();
+
+ assert_equals(e.audioTracks.foo, 'foo');
+ assert_equals(e.audioTracks[0].bar, 'bar');
+ assert_equals(e.videoTracks.baz, 'baz');
+ assert_equals(e.videoTracks[0].qux, 'qux');
+
+ t.done();
+ }));
+ });
+ </script>
+ </body>
+</html>
« no previous file with comments | « LayoutTests/media/avtrack/forget-on-load.html ('k') | LayoutTests/media/avtrack/getTrackById.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698