Skip to content

Commit

Permalink
test: skip protocol.registerSchemesAsPrivileged stream test when medi…
Browse files Browse the repository at this point in the history
…a not supported (#27229)

Co-authored-by: Milan Burda <milan.burda@gmail.com>
  • Loading branch information
trop[bot] and miniak committed Jan 7, 2021
1 parent 91cfa96 commit cb281b7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion spec-main/api-protocol-spec.ts
Expand Up @@ -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 () => {
Expand Down

0 comments on commit cb281b7

Please sign in to comment.