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

Unified Diff: third_party/WebKit/LayoutTests/media/avtrack/audio-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/audio-track-properties.html
diff --git a/third_party/WebKit/LayoutTests/media/avtrack/audio-track-properties.html b/third_party/WebKit/LayoutTests/media/avtrack/audio-track-properties.html
index b6b2a62baa9cc3afcce73bdee77071f5854154ba..909849b332a5af6947d966179952e03e7d2ac6cf 100644
--- a/third_party/WebKit/LayoutTests/media/avtrack/audio-track-properties.html
+++ b/third_party/WebKit/LayoutTests/media/avtrack/audio-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("audio");
- e.src = "../content/test.webm";
+ var audio = document.createElement("audio");
+ audio.src = "../content/test.webm";
- e.onloadedmetadata = t.step_func_done(function()
+ audio.onloadedmetadata = t.step_func_done(function()
{
- assert_equals(e.audioTracks.length, 1, "audioTracks.length");
- assert_true(e.audioTracks[0].enabled, "audioTrack.enabled");
- assert_equals(e.audioTracks[0].id, "2", "audioTrack.id");
- assert_equals(e.audioTracks[0].kind, "main", "audioTrack.kind");
- assert_equals(e.audioTracks[0].label, "", "audioTrack.label");
- assert_equals(e.audioTracks[0].language, "", "audioTrack.language");
+ assert_equals(audio.audioTracks.length, 1, "audioTracks.length");
+ assert_true(audio.audioTracks[0].enabled, "audioTrack.enabled");
+ assert_equals(audio.audioTracks[0].id, "2", "audioTrack.id");
+ assert_equals(audio.audioTracks[0].kind, "main", "audioTrack.kind");
+ assert_equals(audio.audioTracks[0].label, "", "audioTrack.label");
+ assert_equals(audio.audioTracks[0].language, "", "audioTrack.language");
});
});
</script>

Powered by Google App Engine
This is Rietveld 408576698