test: skip media-started-playing media-paused events test when media not supported (#27236)

Co-authored-by: Milan Burda <milan.burda@gmail.com>
This commit is contained in:
trop[bot]
2021-01-08 09:31:06 -08:00
committed by GitHub
parent 8eb4ab0ae1
commit dc657515b7

View File

@@ -934,6 +934,12 @@ describe('<webview> tag', function () {
});
describe('media-started-playing media-paused events', () => {
beforeEach(function () {
if (!document.createElement('audio').canPlayType('audio/wav')) {
this.skip();
}
});
it('emits when audio starts and stops playing', async () => {
await loadWebView(webview, { src: `file://${fixtures}/pages/base-page.html` });