4 <title>AudioTrack
& VideoTrack garbage collection
</title>
5 <script src=
"../../resources/testharness.js"></script>
6 <script src=
"../../resources/testharnessreport.js"></script>
7 <script src=
"../media-file.js"></script>
12 async_test(function(t
)
14 var e
= document
.createElement('video');
15 e
.src
= findMediaFile('video', '../content/test');
17 e
.addEventListener('loadedmetadata', t
.step_func(function()
19 e
.audioTracks
.foo
= 'foo';
20 e
.audioTracks
[0].bar
= 'bar';
21 e
.videoTracks
.baz
= 'baz';
22 e
.videoTracks
[0].qux
= 'qux';
26 assert_equals(e
.audioTracks
.foo
, 'foo');
27 assert_equals(e
.audioTracks
[0].bar
, 'bar');
28 assert_equals(e
.videoTracks
.baz
, 'baz');
29 assert_equals(e
.videoTracks
[0].qux
, 'qux');