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 |
+ |