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

Side by Side Diff: third_party/WebKit/LayoutTests/media/track/track-cues-pause-on-exit-expected.txt

Issue 1865933002: Fix race when HTMLMediaElement.play() is called just after pause(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix Created 4 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 ERROR: Uncaught (in promise) AbortError: The play() request was interrup ted by a call to pause().
2 Tests that the video is paused after cues that have pause-on-exit flag are proce ssed 1 Tests that the video is paused after cues that have pause-on-exit flag are proce ssed
3 2
4 EVENT(canplaythrough) 3 EVENT(canplaythrough)
5 EXPECTED (testTrack.track.cues.length == '4') OK 4 EXPECTED (testTrack.track.cues.length == '4') OK
6 5
7 RUN(video.play()) 6 RUN(video.play())
8 EXPECTED (video.paused == 'false') OK 7 EXPECTED (video.paused == 'false') OK
9 8
10 EVENT(pause) 9 EVENT(pause)
11 EVENT(exit) 10 EVENT(exit)
12 EXPECTED (currentCue.id == '0') OK 11 EXPECTED (currentCue.id == '0') OK
13 EXPECTED (video.paused == 'true') OK 12 EXPECTED (video.paused == 'true') OK
14 RUN(video.play()) 13 RUN(video.play())
15 14
16 EVENT(pause) 15 EVENT(pause)
17 EVENT(exit) 16 EVENT(exit)
18 EXPECTED (currentCue.id == '2') OK 17 EXPECTED (currentCue.id == '2') OK
19 EXPECTED (video.paused == 'true') OK 18 EXPECTED (video.paused == 'true') OK
20 RUN(video.play()) 19 RUN(video.play())
21 END OF TEST 20 END OF TEST
22 21
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698