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

Unified Diff: third_party/WebKit/LayoutTests/media/media-play-promise-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: update expectations Created 4 years, 8 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
Index: third_party/WebKit/LayoutTests/media/media-play-promise-expected.txt
diff --git a/third_party/WebKit/LayoutTests/media/media-play-promise-expected.txt b/third_party/WebKit/LayoutTests/media/media-play-promise-expected.txt
index 3a78c525b939bf9371b047a0333e3236a32b9610..d1418ac89d7b8d9139a66acac9c390b1a7cedf01 100644
--- a/third_party/WebKit/LayoutTests/media/media-play-promise-expected.txt
+++ b/third_party/WebKit/LayoutTests/media/media-play-promise-expected.txt
@@ -167,5 +167,20 @@ play()
RUN(mediaElement.volume = 0.2)
arguments.length: 1
Promise failed with NotSupportedError: The element has no supported sources.
+
+pausePlayAfterPlaybackStarted()
+RUN(mediaElement = document.createElement('audio'))
+RUN(mediaElement.src = 'content/test.wav')
+EVENT(volumechange)
+EVENT(volumechange)
+EVENT(canplaythrough)
+RUN(mediaElement.play())
+EVENT(playing)
+EXPECTED (mediaElement.readyState == '4') OK
+EXPECTED (mediaElement.paused == 'false') OK
+RUN(mediaElement.pause())
+play()
+arguments.length: 1
+Promise resolved with undefined
END OF TEST

Powered by Google App Engine
This is Rietveld 408576698