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

Side by Side Diff: third_party/WebKit/LayoutTests/media/autoplay-muted-datasaver-off.html

Issue 2046403002: Autoplay: disable muted video autoplay if data saver is on. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@video-as-images-flag
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 unified diff | Download patch
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/media/autoplay-muted-datasaver-on.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <title>Test muted autoplay videos interaction with data saver on</title>
5 <script src="../resources/testharness.js"></script>
6 <script src="../resources/testharnessreport.js"></script>
7 <script src="media-file.js"></script>
8 </head>
9 <body>
10 <script>
11 window.internals.settings.setMediaPlaybackRequiresUserGesture(true);
12 window.internals.runtimeFlags.autoplayMutedVideosEnabled = true;
13 window.internals.settings.setDataSaverEnabled(false);
14
15 promise_test(function(t)
16 {
17 var video = document.createElement('video');
18 video.src = findMediaFile('video', 'content/test');
19 video.muted = true;
20 return video.play();
21 });
22 </script>
23 </body>
24 </html>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/media/autoplay-muted-datasaver-on.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698