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

Unified Diff: third_party/WebKit/LayoutTests/media/avtrack/audio-track-enabled.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-enabled.html
diff --git a/third_party/WebKit/LayoutTests/media/avtrack/audio-track-enabled.html b/third_party/WebKit/LayoutTests/media/avtrack/audio-track-enabled.html
index 4932f5014adbfb0a9728bec1aa235e2910001145..6244af4a86cd8561cf12e2210de186e253638ffb 100644
--- a/third_party/WebKit/LayoutTests/media/avtrack/audio-track-enabled.html
+++ b/third_party/WebKit/LayoutTests/media/avtrack/audio-track-enabled.html
@@ -7,30 +7,28 @@
<script src="../media-file.js"></script>
</head>
<body>
- <div id="log"></div>
<script>
async_test(function(t)
{
- var e = document.createElement("audio");
- e.src = findMediaFile("audio", "../content/test");
+ var audio = document.createElement("audio");
+ audio.src = findMediaFile("audio", "../content/test");
- e.onloadedmetadata = t.step_func(function()
+ audio.onloadedmetadata = t.step_func(function()
{
- assert_equals(e.audioTracks.length, 1, "audioTracks.length");
- assert_true(e.audioTracks[0].enabled, "audioTrack.enabled (initial)");
- e.audioTracks[0].enabled = false;
- assert_false(e.audioTracks[0].enabled, "audioTrack.enabled (first setter)");
+ assert_equals(audio.audioTracks.length, 1, "audioTracks.length");
+ assert_true(audio.audioTracks[0].enabled, "audioTrack.enabled (initial)");
+ audio.audioTracks[0].enabled = false;
+ assert_false(audio.audioTracks[0].enabled, "audioTrack.enabled (first setter)");
- e.audioTracks.onchange = t.step_func(function()
+ audio.audioTracks.onchange = t.step_func(function()
{
- assert_false(e.audioTracks[0].enabled, "audioTrack.enabled (first change event)");
- e.audioTracks[0].enabled = true;
- assert_true(e.audioTracks[0].enabled, "audioTrack.enabled (second setter)");
+ assert_false(audio.audioTracks[0].enabled, "audioTrack.enabled (first change event)");
+ audio.audioTracks[0].enabled = true;
+ assert_true(audio.audioTracks[0].enabled, "audioTrack.enabled (second setter)");
- e.audioTracks.onchange = t.step_func(function()
+ audio.audioTracks.onchange = t.step_func_done(function()
{
- assert_true(e.audioTracks[0].enabled, "audioTrack.enabled (second change event)");
- t.done();
+ assert_true(audio.audioTracks[0].enabled, "audioTrack.enabled (second change event)");
});
});
});

Powered by Google App Engine
This is Rietveld 408576698