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

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: reduce 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/media/autoplay-when-visible.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..f67d95215b7de8120aba17d1cf98a9bc0950dd6e 100644
--- a/third_party/WebKit/LayoutTests/media/autoplay-muted.html
+++ b/third_party/WebKit/LayoutTests/media/autoplay-muted.html
@@ -4,6 +4,7 @@
<script src="../resources/testharnessreport.js"></script>
<script src="media-file.js"></script>
<script src="media-controls.js"></script>
+<body>
<script>
test(function() {
assert_true(!!window.internals
@@ -35,6 +36,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 +102,4 @@
createMutedVideoElement().play());
}, "Test that muted videos don't autoplay when the setting is disabled");
</script>
+</body>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/media/autoplay-when-visible.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698