Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(574)

Side by Side Diff: LayoutTests/media/video-play-require-user-gesture-expected.txt

Issue 139313007: Deprecate HTMLVideoElement-specific prefixed fullscreen API (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: update tests Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 CONSOLE WARNING: 'HTMLVideoElement.webkitEnterFullScreen()' is deprecated. Pleas e use 'Element.requestFullscreen()' and 'Element.webkitRequestFullscreen()' inst ead.
1 Test that video play(), pause() and webkitEnterFullScreen() should not work unle ss a user clicked on the play button. 2 Test that video play(), pause() and webkitEnterFullScreen() should not work unle ss a user clicked on the play button.
2 3
3 EVENT(canplaythrough) 4 EVENT(canplaythrough)
4 5
5 * No user gesture initiated 6 * No user gesture initiated
6 RUN(video.play()) 7 RUN(video.play())
7 TEST(video.webkitEnterFullScreen()) THROWS(DOMException.INVALID_STATE_ERR: Faile d to execute 'webkitEnterFullScreen' on 'HTMLVideoElement': This element may onl y enter fullscreen mode in response to a user gesture ('click', for example).) O K 8 TEST(video.webkitEnterFullScreen()) THROWS(DOMException.INVALID_STATE_ERR: Faile d to execute 'webkitEnterFullScreen' on 'HTMLVideoElement': This element may onl y enter fullscreen mode in response to a user gesture ('click', for example).) O K
8 EXPECTED (video.paused == 'true') OK 9 EXPECTED (video.paused == 'true') OK
9 10
10 * User gesture initiated 11 * User gesture initiated
11 EVENT(playing) 12 EVENT(playing)
12 RUN(video.pause()) 13 RUN(video.pause())
13 EVENT(pause) 14 EVENT(pause)
14 EXPECTED (video.paused == 'true') OK 15 EXPECTED (video.paused == 'true') OK
15 RUN(video.webkitEnterFullScreen()) 16 RUN(video.webkitEnterFullScreen())
16 END OF TEST 17 END OF TEST
17 18
OLDNEW
« no previous file with comments | « LayoutTests/media/video-enter-fullscreen-without-user-gesture-expected.txt ('k') | Source/core/frame/UseCounter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698