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> |