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

Unified Diff: third_party/WebKit/LayoutTests/media/autoplay.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/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);

Powered by Google App Engine
This is Rietveld 408576698