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

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

Issue 428263004: Revert of Delete mediaPlaybackRequiresUserGesture (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « LayoutTests/media/video-play-require-user-gesture.html ('k') | Source/core/frame/Settings.in » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/media/video-play-require-user-gesture-expected.txt
diff --git a/LayoutTests/media/video-play-require-user-gesture-expected.txt b/LayoutTests/media/video-play-require-user-gesture-expected.txt
new file mode 100644
index 0000000000000000000000000000000000000000..e278cbe0147c35e85162d44281e5caa8cd08863e
--- /dev/null
+++ b/LayoutTests/media/video-play-require-user-gesture-expected.txt
@@ -0,0 +1,15 @@
+Test that video play() does not work unless a user clicked on the play button.
+
+EVENT(canplaythrough)
+
+* No user gesture initiated
+RUN(video.play())
+EXPECTED (video.paused == 'true') OK
+
+* User gesture initiated
+EVENT(playing)
+RUN(video.pause())
+EVENT(pause)
+EXPECTED (video.paused == 'true') OK
+END OF TEST
+
« no previous file with comments | « LayoutTests/media/video-play-require-user-gesture.html ('k') | Source/core/frame/Settings.in » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698