OLD | NEW |
1 CONSOLE WARNING: Failed to execute 'play' on 'HTMLMediaElement': API can only be
initiated by a user gesture. | 1 CONSOLE WARNING: Failed to execute 'play' on 'HTMLMediaElement': API can only be
initiated by a user gesture. |
| 2 CONSOLE ERROR: line 1: Uncaught (in promise) NotAllowedError: play() can only be
initiated by a user gesture. |
2 Test that video play() does not work unless a user clicked on the play button. | 3 Test that video play() does not work unless a user clicked on the play button. |
3 | 4 |
4 EVENT(canplaythrough) | 5 EVENT(canplaythrough) |
5 | 6 |
6 * No user gesture initiated | 7 * No user gesture initiated |
7 RUN(video.play()) | 8 RUN(video.play()) |
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 END OF TEST | 16 END OF TEST |
16 | 17 |
OLD | NEW |