| <title>video-main-content-allow</title> |
| <script src="video-test.js"></script> |
| <script src="media-file.js"></script> |
| video = document.createElement('video'); |
| run('internals.setMediaElementRestrictions(video, "RequireUserGestureForVideoRateChange,OverrideUserGestureRequirementForMainContent")'); |
| document.body.appendChild(video); |
| var spacer = document.body.appendChild(document.createElement('div')); |
| video.src = findMediaFile('video', 'content/test'); |
| waitForEvent('canplaythrough', canPlayThrough); |
| function canPlayThrough() { |
| waitForEvent('playing', playing); |
| run('document.scrollingElement.scrollTop = document.body.clientHeight'); |
| waitForEventAndFail('pause'); |
| setTimeout(afterPlaying, 100); |
| function afterPlaying() { |
| testExpected('video.paused', false); |