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

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

Issue 2850553002: Autoplay: use an autoplay policy setting in Blink. (Closed)
Patch Set: rebase Created 3 years, 7 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-document-move.html
diff --git a/third_party/WebKit/LayoutTests/media/autoplay-document-move.html b/third_party/WebKit/LayoutTests/media/autoplay-document-move.html
index 962a5f4611d0596cdb7a68564f6a89923eec13c5..cd5557134b3b2ea29ea182cee60909cc19d01814 100644
--- a/third_party/WebKit/LayoutTests/media/autoplay-document-move.html
+++ b/third_party/WebKit/LayoutTests/media/autoplay-document-move.html
@@ -17,7 +17,7 @@
}, 'internals are exposed');
async_test(function(t) {
- window.internals.settings.setMediaPlaybackRequiresUserGesture(false);
+ window.internals.settings.setAutoplayPolicy('no-user-gesture-required');
var v = createAndMoveVideo();
assert_true(v.paused, 'Video should be paused before calling play()');
@@ -29,7 +29,7 @@
}, 'Test that video should autoplay without gesture requirement');
async_test(function(t) {
- window.internals.settings.setMediaPlaybackRequiresUserGesture(true);
+ window.internals.settings.setAutoplayPolicy('user-gesture-required');
var v = createAndMoveVideo();
assert_true(v.paused, 'Video should be paused before calling play()');

Powered by Google App Engine
This is Rietveld 408576698