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

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

Issue 2268373002: clean up media tests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
Index: third_party/WebKit/LayoutTests/media/avtrack/gc.html
diff --git a/third_party/WebKit/LayoutTests/media/avtrack/gc.html b/third_party/WebKit/LayoutTests/media/avtrack/gc.html
index 9338e5037ab999a88095fa53c1c497dd5a5629b5..154773c74ceefc241b0b201648e4709fb006e422 100644
--- a/third_party/WebKit/LayoutTests/media/avtrack/gc.html
+++ b/third_party/WebKit/LayoutTests/media/avtrack/gc.html
@@ -7,28 +7,25 @@
<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');
+ var video = document.createElement('video');
+ video.src = findMediaFile('video', '../content/test');
- e.addEventListener('loadedmetadata', t.step_func(function()
+ video.addEventListener('loadedmetadata', t.step_func_done(function()
{
- e.audioTracks.foo = 'foo';
- e.audioTracks[0].bar = 'bar';
- e.videoTracks.baz = 'baz';
- e.videoTracks[0].qux = 'qux';
+ video.audioTracks.foo = 'foo';
+ video.audioTracks[0].bar = 'bar';
+ video.videoTracks.baz = 'baz';
+ video.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();
+ assert_equals(video.audioTracks.foo, 'foo');
+ assert_equals(video.audioTracks[0].bar, 'bar');
+ assert_equals(video.videoTracks.baz, 'baz');
+ assert_equals(video.videoTracks[0].qux, 'qux');
}));
});
</script>

Powered by Google App Engine
This is Rietveld 408576698