blob: 6072c6461e20243464ab1c8d52db607a39d9d1ea [file] [log] [blame]
<!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>
</head>
<body>
<script>
window.internals.settings.setAutoplayPolicy('user-gesture-required');
window.internals.runtimeFlags.autoplayMutedVideosEnabled = true;
internals.setSaveDataEnabled(false);
promise_test(function(t)
{
var video = document.createElement('video');
video.src = 'content/test.ogv';
video.muted = true;
return video.play();
});
</script>
</body>
</html>