| Index: third_party/WebKit/LayoutTests/media/autoplay-muted-datasaver-off.html
|
| diff --git a/third_party/WebKit/LayoutTests/media/autoplay-muted-datasaver-off.html b/third_party/WebKit/LayoutTests/media/autoplay-muted-datasaver-off.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..5e9baa137a1ac0dc50f840ad02e754afdaf57608
|
| --- /dev/null
|
| +++ b/third_party/WebKit/LayoutTests/media/autoplay-muted-datasaver-off.html
|
| @@ -0,0 +1,24 @@
|
| +<!DOCTYPE html>
|
| +<html>
|
| +<head>
|
| + <title>Test muted autoplay videos interaction with data saver on</title>
|
| + <script src="../resources/testharness.js"></script>
|
| + <script src="../resources/testharnessreport.js"></script>
|
| + <script src="media-file.js"></script>
|
| +</head>
|
| +<body>
|
| +<script>
|
| + window.internals.settings.setMediaPlaybackRequiresUserGesture(true);
|
| + window.internals.runtimeFlags.autoplayMutedVideosEnabled = true;
|
| + window.internals.settings.setDataSaverEnabled(false);
|
| +
|
| + promise_test(function(t)
|
| + {
|
| + var video = document.createElement('video');
|
| + video.src = findMediaFile('video', 'content/test');
|
| + video.muted = true;
|
| + return video.play();
|
| + });
|
| +</script>
|
| +</body>
|
| +</html>
|
|
|