OLD | NEW |
1 CONSOLE WARNING: Failed to execute 'play' on 'HTMLMediaElement': API can only be
initiated by a user gesture. | 1 CONSOLE WARNING: line 1: 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 CONSOLE ERROR: line 1: Uncaught (in promise) NotAllowedError: play() can only be
initiated by a user gesture. |
3 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. |
4 | 4 |
5 EVENT(canplaythrough) | 5 EVENT(canplaythrough) |
6 | 6 |
7 * No user gesture initiated | 7 * No user gesture initiated |
8 RUN(video.play()) | 8 RUN(video.play()) |
9 EXPECTED (video.paused == 'true') OK | 9 EXPECTED (video.paused == 'true') OK |
10 | 10 |
11 * User gesture initiated | 11 * User gesture initiated |
12 EVENT(playing) | 12 EVENT(playing) |
13 RUN(video.pause()) | 13 RUN(video.pause()) |
14 EVENT(pause) | 14 EVENT(pause) |
15 EXPECTED (video.paused == 'true') OK | 15 EXPECTED (video.paused == 'true') OK |
16 END OF TEST | 16 END OF TEST |
17 | 17 |
OLD | NEW |