[Modern Media Controls] Turn media/modern-media-controls/ios-inline-media-controls...
[WebKit-https.git] / LayoutTests / media / video-fullscreen-restriction-removed-expected.txt
1 CONSOLE MESSAGE: Unhandled Promise Rejection: NotAllowedError: The request is not allowed by the user agent or the platform in the current context, possibly because the user denied permission.
2 Test that "fullscreen requires user gesture restriction" is removed by a user gesture.
3
4 Click me!
5 RUN(internals.settings.setAllowsInlineMediaPlayback(false))
6 RUN(internals.setMediaElementRestrictions(video, "RequireUserGestureForFullscreen"))
7 * set video.src
8
9 EVENT(canplaythrough)
10
11 * video.play() should fail 
12 RUN(video.play())
13 EXPECTED (video.paused == 'true') OK
14
15 * clicking button
16
17 EVENT(click)
18 * video.play() should work from within a click handler
19 EXPECTED (video.paused == 'true') OK
20 RUN(video.play())
21
22 EVENT(webkitfullscreenchange)
23 EXPECTED (video.paused == 'false') OK
24
25 END OF TEST
26