Index: third_party/WebKit/LayoutTests/media/autoplay.html |
diff --git a/third_party/WebKit/LayoutTests/media/autoplay.html b/third_party/WebKit/LayoutTests/media/autoplay.html |
index ca59be325e0c3c18f55759b24e6354649e8b6360..5fc52318e9e5e7952239cc670e9da2f2340d06be 100644 |
--- a/third_party/WebKit/LayoutTests/media/autoplay.html |
+++ b/third_party/WebKit/LayoutTests/media/autoplay.html |
@@ -4,23 +4,22 @@ |
<script src="../resources/testharness.js"></script> |
<script src="../resources/testharnessreport.js"></script> |
<script src="media-file.js"></script> |
-<div id="log"></div> |
<script> |
function autoplay_test(tagName, src) |
{ |
async_test(function(t) |
{ |
- var e = document.createElement(tagName); |
- e.src = src; |
- e.autoplay = true; |
+ var media = document.createElement(tagName); |
+ media.src = src; |
+ media.autoplay = true; |
var actual_events = []; |
var expected_events = ['canplay', 'play', 'playing', 'canplaythrough']; |
expected_events.forEach(function(type) |
{ |
- e.addEventListener(type, t.step_func(function() |
+ media.addEventListener(type, t.step_func(function() |
{ |
- assert_equals(e.readyState, e.HAVE_ENOUGH_DATA); |
- assert_false(e.paused); |
+ assert_equals(media.readyState, media.HAVE_ENOUGH_DATA); |
+ assert_false(media.paused); |
actual_events.push(type); |
if (type == 'canplaythrough') { |
assert_array_equals(actual_events, expected_events); |