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

Unified Diff: third_party/WebKit/LayoutTests/media/avtrack/video-track-properties.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/video-track-properties.html
diff --git a/third_party/WebKit/LayoutTests/media/avtrack/video-track-properties.html b/third_party/WebKit/LayoutTests/media/avtrack/video-track-properties.html
index 8ffe4a416cc581c6c37aab7057dbf1a509330cb9..01e45c94a27f834af3569f70ccb31ba7d06661c6 100644
--- a/third_party/WebKit/LayoutTests/media/avtrack/video-track-properties.html
+++ b/third_party/WebKit/LayoutTests/media/avtrack/video-track-properties.html
@@ -7,21 +7,20 @@
<script src="../media-file.js"></script>
</head>
<body>
- <div id="log"></div>
<script>
async_test(function(t)
{
- var e = document.createElement("video");
- e.src = "../content/test.webm";
+ var video = document.createElement("video");
+ video.src = "../content/test.webm";
- e.onloadedmetadata = t.step_func_done(function()
+ video.onloadedmetadata = t.step_func_done(function()
{
- assert_equals(e.videoTracks.length, 1, "videoTracks.length");
- assert_true(e.videoTracks[0].selected, "videoTrack.selected");
- assert_equals(e.videoTracks[0].id, "1", "videoTrack.id");
- assert_equals(e.videoTracks[0].kind, "main", "videoTrack.kind");
- assert_equals(e.videoTracks[0].label, "", "videoTrack.label");
- assert_equals(e.videoTracks[0].language, "", "videoTrack.language");
+ assert_equals(video.videoTracks.length, 1, "videoTracks.length");
+ assert_true(video.videoTracks[0].selected, "videoTrack.selected");
+ assert_equals(video.videoTracks[0].id, "1", "videoTrack.id");
+ assert_equals(video.videoTracks[0].kind, "main", "videoTrack.kind");
+ assert_equals(video.videoTracks[0].label, "", "videoTrack.label");
+ assert_equals(video.videoTracks[0].language, "", "videoTrack.language");
});
});
</script>

Powered by Google App Engine
This is Rietveld 408576698