Return a Promise from HTMLMediaElement.play()
[WebKit-https.git] / LayoutTests / media / media-play-promise-reject-error-notsupported-expected.txt
1
2 RUN(mediaElement.src = findMediaFile("video", "content/invalid"))
3 RUN(mediaElement.play().then(failTest).catch(promiseRejected))
4 Promise rejected. OK
5 EXPECTED (error.name == 'NotSupportedError') OK
6 END OF TEST
7