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

Unified Diff: third_party/WebKit/LayoutTests/media/avtrack/getTrackById.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/getTrackById.html
diff --git a/third_party/WebKit/LayoutTests/media/avtrack/getTrackById.html b/third_party/WebKit/LayoutTests/media/avtrack/getTrackById.html
index 1f76930ac4c6b68624c9c5fd5038607b685f38ff..5b5212845e6e94b50dddd8559117e5fc53aae9ff 100644
--- a/third_party/WebKit/LayoutTests/media/avtrack/getTrackById.html
+++ b/third_party/WebKit/LayoutTests/media/avtrack/getTrackById.html
@@ -7,31 +7,28 @@
<script src="../media-file.js"></script>
</head>
<body>
- <div id="log"></div>
<script>
async_test(function(t)
{
- var e = document.createElement('video');
+ var video = document.createElement('video');
- assert_equals(e.audioTracks.length, 0);
- assert_equals(e.audioTracks.getTrackById(''), null);
+ assert_equals(video.audioTracks.length, 0);
+ assert_equals(video.audioTracks.getTrackById(''), null);
- assert_equals(e.videoTracks.length, 0);
- assert_equals(e.videoTracks.getTrackById(''), null);
+ assert_equals(video.videoTracks.length, 0);
+ assert_equals(video.videoTracks.getTrackById(''), null);
- e.src = findMediaFile('video', '../content/test');
+ video.src = findMediaFile('video', '../content/test');
- e.addEventListener('loadedmetadata', t.step_func(function()
+ video.addEventListener('loadedmetadata', t.step_func_done(function()
{
- assert_equals(e.audioTracks.length, 1);
- assert_equals(e.audioTracks.getTrackById(e.audioTracks[0].id), e.audioTracks[0]);
- assert_equals(e.audioTracks.getTrackById('fake-id'), null);
+ assert_equals(video.audioTracks.length, 1);
+ assert_equals(video.audioTracks.getTrackById(video.audioTracks[0].id), video.audioTracks[0]);
+ assert_equals(video.audioTracks.getTrackById('fake-id'), null);
- assert_equals(e.videoTracks.length, 1);
- assert_equals(e.videoTracks.getTrackById(e.videoTracks[0].id), e.videoTracks[0]);
- assert_equals(e.videoTracks.getTrackById('fake-id'), null);
-
- t.done();
+ assert_equals(video.videoTracks.length, 1);
+ assert_equals(video.videoTracks.getTrackById(video.videoTracks[0].id), video.videoTracks[0]);
+ assert_equals(video.videoTracks.getTrackById('fake-id'), null);
}));
});
</script>

Powered by Google App Engine
This is Rietveld 408576698