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

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

Issue 1162063004: Notify on console when play fails (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 6 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
OLDNEW
1 CONSOLE WARNING: Failed to execute 'play' on 'MediaElement': the API can be init iated only by the user.
1 Test that video play() does not work unless a user clicked on the play button. 2 Test that video play() does not work unless 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 EXPECTED (video.paused == 'true') OK 8 EXPECTED (video.paused == 'true') OK
8 9
9 * User gesture initiated 10 * User gesture initiated
10 EVENT(playing) 11 EVENT(playing)
11 RUN(video.pause()) 12 RUN(video.pause())
12 EVENT(pause) 13 EVENT(pause)
13 EXPECTED (video.paused == 'true') OK 14 EXPECTED (video.paused == 'true') OK
14 END OF TEST 15 END OF TEST
15 16
OLDNEW
« no previous file with comments | « no previous file | Source/core/html/HTMLMediaElement.cpp » ('j') | Source/core/html/HTMLMediaElement.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698