[Modern Media Controls] Turn media/modern-media-controls/ios-inline-media-controls...
[WebKit-https.git] / LayoutTests / media / video-add-autoplay-user-gesture.html
1 <!DOCTYPE html>
2 <html>
3 <head>
4     <title>video-add-autoplay-user-gesture</title>
5     <script src=media-file.js></script>
6     <script src=video-test.js></script>
7     <script>
8     function runTest() {
9         run('window.internals.settings.setVideoPlaybackRequiresUserGesture(true);');
10         run('video = document.createElement("video")');
11         run('video.src = findMediaFile("video", "content/test")');
12         runWithKeyDown(() => {
13             run('video.setAttribute("autoplay", "")');
14             run('document.body.appendChild(video)');
15             waitForEventAndEnd('playing');
16             failTestIn(1000);
17         });
18     }
19     </script>
20 </head>
21 <body onload="runTest()">
22 </body>
23 </html>