test: skip media-started-playing media-paused events test when media not supported (#27215)
This commit is contained in:
parent
904d2ff4cc
commit
00d4baa0e2
1 changed files with 6 additions and 0 deletions
|
@ -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` });
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue