mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
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:
@@ -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` });
|
||||
|
||||
|
||||
Reference in New Issue
Block a user