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

Unified Diff: third_party/WebKit/LayoutTests/media/avtrack/forget-on-load.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/forget-on-load.html
diff --git a/third_party/WebKit/LayoutTests/media/avtrack/forget-on-load.html b/third_party/WebKit/LayoutTests/media/avtrack/forget-on-load.html
index 52657d55368f55f5d796f38bffbbd3fd402dff0d..700a472c85fe48a121d818dfbc06acec1ac3c36d 100644
--- a/third_party/WebKit/LayoutTests/media/avtrack/forget-on-load.html
+++ b/third_party/WebKit/LayoutTests/media/avtrack/forget-on-load.html
@@ -7,27 +7,24 @@
<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()
{
- assert_equals(e.audioTracks.length, 1, "audioTracks.length");
- assert_equals(e.videoTracks.length, 1, "videoTracks.length");
- assert_equals(e.videoTracks.selectedIndex, 0, "videoTracks.selectedIndex");
+ assert_equals(video.audioTracks.length, 1, "audioTracks.length");
+ assert_equals(video.videoTracks.length, 1, "videoTracks.length");
+ assert_equals(video.videoTracks.selectedIndex, 0, "videoTracks.selectedIndex");
- e.load();
+ video.load();
- assert_equals(e.audioTracks.length, 0, "audioTracks.length");
- assert_equals(e.videoTracks.length, 0, "videoTracks.length");
- assert_equals(e.videoTracks.selectedIndex, -1, "videoTracks.selectedIndex");
-
- t.done();
+ assert_equals(video.audioTracks.length, 0, "audioTracks.length");
+ assert_equals(video.videoTracks.length, 0, "videoTracks.length");
+ assert_equals(video.videoTracks.selectedIndex, -1, "videoTracks.selectedIndex");
}));
});
</script>

Powered by Google App Engine
This is Rietveld 408576698