mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
Don't run mediaDevices spec on Linux CI
This commit is contained in:
@@ -7,6 +7,8 @@ const remote = require('electron').remote;
|
||||
const BrowserWindow = remote.require('electron').BrowserWindow;
|
||||
const session = remote.require('electron').session;
|
||||
|
||||
const isCI = remote.getGlobal('isCi');
|
||||
|
||||
describe('chromium feature', function() {
|
||||
var fixtures = path.resolve(__dirname, 'fixtures');
|
||||
var listener = null;
|
||||
@@ -91,6 +93,9 @@ describe('chromium feature', function() {
|
||||
if (process.env.TRAVIS === 'true') {
|
||||
return;
|
||||
}
|
||||
if (isCI && process.platform === 'linux') {
|
||||
return;
|
||||
}
|
||||
|
||||
it('can return labels of enumerated devices', function(done) {
|
||||
navigator.mediaDevices.enumerateDevices().then((devices) => {
|
||||
|
||||
Reference in New Issue
Block a user