blob: c1438635db4688df66fc695064e9c8258ade261f [file] [log] [blame]
jer.noble@apple.come63d96d2016-03-10 00:22:12 +00001<!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 mediaElement = video = document.createElement('video');
10 // video.customProperty = 'custom';
jer.noble@apple.com75a4eb82016-03-10 21:35:10 +000011 run('internals.setMediaElementRestrictions(video, "RequireUserGestureForVideoRateChange,OverrideUserGestureRequirementForMainContent")');
jer.noble@apple.come63d96d2016-03-10 00:22:12 +000012
13 video.src = findMediaFile('video', 'content/test');
14 waitForEvent('canplaythrough', canPlayThrough);
15 }
16
17 function canPlayThrough() {
18 video.play();
19 waitForEventAndFail('playing');
20 setTimeout(didNotBeginPlaying, 100);
21 }
22
23 function didNotBeginPlaying() {
24 logResult(true, 'Did not begin playing');
25 endTest();
26 }
27 </script>
28 <style>
29 video {
30 width: 600px;
31 height: 400px;
32 }
33 </style>
34</head>
35<body onload="go()">
36</body>
37</html>