mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
test: skip protocol.registerSchemesAsPrivileged stream test when media not supported (#27230)
Co-authored-by: Milan Burda <milan.burda@gmail.com>
This commit is contained in:
@@ -908,8 +908,12 @@ describe('protocol module', () => {
|
||||
await fs.promises.unlink(videoPath);
|
||||
});
|
||||
|
||||
beforeEach(async () => {
|
||||
beforeEach(async function () {
|
||||
w = new BrowserWindow({ show: false });
|
||||
await w.loadURL('about:blank');
|
||||
if (!await w.webContents.executeJavaScript('document.createElement(\'video\').canPlayType(\'video/webm; codecs="vp8.0"\')')) {
|
||||
this.skip();
|
||||
}
|
||||
});
|
||||
|
||||
afterEach(async () => {
|
||||
|
||||
Reference in New Issue
Block a user