Fix a few failing tests on Windows
This commit is contained in:
parent
2a55d93501
commit
214eb0430c
2 changed files with 10 additions and 2 deletions
|
@ -173,11 +173,12 @@ describe('browser-window module', function () {
|
||||||
})
|
})
|
||||||
|
|
||||||
it('does not crash in did-fail-provisional-load handler', function (done) {
|
it('does not crash in did-fail-provisional-load handler', function (done) {
|
||||||
|
this.timeout(10000)
|
||||||
w.webContents.once('did-fail-provisional-load', function () {
|
w.webContents.once('did-fail-provisional-load', function () {
|
||||||
w.loadURL('http://localhost:11111')
|
w.loadURL('http://127.0.0.1:11111')
|
||||||
done()
|
done()
|
||||||
})
|
})
|
||||||
w.loadURL('http://localhost:11111')
|
w.loadURL('http://127.0.0.1:11111')
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
|
@ -97,6 +97,9 @@ describe('chromium feature', function () {
|
||||||
if (isCI && process.platform === 'linux') {
|
if (isCI && process.platform === 'linux') {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
if (isCI && process.platform === 'win32') {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
it('can return labels of enumerated devices', function (done) {
|
it('can return labels of enumerated devices', function (done) {
|
||||||
navigator.mediaDevices.enumerateDevices().then((devices) => {
|
navigator.mediaDevices.enumerateDevices().then((devices) => {
|
||||||
|
@ -327,6 +330,10 @@ describe('chromium feature', function () {
|
||||||
})
|
})
|
||||||
|
|
||||||
describe('webgl', function () {
|
describe('webgl', function () {
|
||||||
|
if (isCI && process.platform === 'win32') {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
it('can be get as context in canvas', function () {
|
it('can be get as context in canvas', function () {
|
||||||
if (process.platform === 'linux') return
|
if (process.platform === 'linux') return
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue