[Modern Media Controls] Turn media/modern-media-controls/ios-inline-media-controls...
[WebKit-https.git] / LayoutTests / media / video-main-content-allow.html
1 <!DOCTYPE html>
2 <html>
3 <head>
4     <title>video-main-content-allow</title>
5     <script src="video-test.js"></script>
6     <script src="media-file.js"></script>
7     <script>
8     function go() {
9         video = document.createElement('video');
10         run('internals.setMediaElementRestrictions(video, "RequireUserGestureForVideoRateChange,OverrideUserGestureRequirementForMainContent")');
11         document.body.appendChild(video);
12
13         video.src = findMediaFile('video', 'content/test');
14         waitForEvent('canplaythrough', canPlayThrough);
15     }
16
17     function canPlayThrough() {
18         video.play();
19         waitForEventAndEnd('playing');
20         failTestIn(100);
21     }
22     </script>
23     <style>
24     video {
25         width: 270px;
26         height: 480px;
27     }
28     </style>
29 </head>
30 <body onload="go()">
31 </body>
32 </html>