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

Unified Diff: third_party/WebKit/LayoutTests/media/autoplay-muted.html

Issue 2051253002: Start autoplay muted videos with autoplay attribute when they are visible. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: review comments Created 4 years, 6 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-muted.html
diff --git a/third_party/WebKit/LayoutTests/media/autoplay-muted.html b/third_party/WebKit/LayoutTests/media/autoplay-muted.html
index 2de88e10382cf8471b7711599dbd5f349cf0e3bf..5354465f752bf570403ac6438f5d91d9b2c68d67 100644
--- a/third_party/WebKit/LayoutTests/media/autoplay-muted.html
+++ b/third_party/WebKit/LayoutTests/media/autoplay-muted.html
@@ -1,5 +1,9 @@
<!DOCTYPE html>
+<html>
+<head>
esprehn 2016/06/21 21:28:41 you don't need <head> or <html>, just add <body>.
mlamouri (slow - plz ping) 2016/06/21 21:32:11 I could but having <title> outside of <head> isn't
esprehn 2016/06/21 21:36:39 The <title> won't be outside the head, just like i
<title>Test for autoplay of muted video</title>
+</head>
+<body>
<script src="../resources/testharness.js"></script>
<script src="../resources/testharnessreport.js"></script>
<script src="media-file.js"></script>
@@ -35,6 +39,7 @@
async_test(function(t) {
var e = createMutedVideoElement();
e.autoplay = true;
+ document.body.appendChild(e);
var expectedEvents = [ 'canplay', 'play', 'playing'];
var eventWatcher = new EventWatcher(t, e, expectedEvents);
@@ -100,3 +105,5 @@
createMutedVideoElement().play());
}, "Test that muted videos don't autoplay when the setting is disabled");
</script>
+</body>
+</html>
esprehn 2016/06/21 21:28:41 remove

Powered by Google App Engine
This is Rietveld 408576698