Skip native addon test in Windows
This commit is contained in:
parent
8dff29185b
commit
91f31506ef
1 changed files with 12 additions and 7 deletions
|
@ -1094,6 +1094,7 @@ describe('BrowserWindow module', function () {
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
it('opens window of about:blank with cross-scripting enabled', (done) => {
|
it('opens window of about:blank with cross-scripting enabled', (done) => {
|
||||||
ipcMain.once('answer', (event, content) => {
|
ipcMain.once('answer', (event, content) => {
|
||||||
assert.equal(content, 'Hello')
|
assert.equal(content, 'Hello')
|
||||||
|
@ -1101,6 +1102,7 @@ describe('BrowserWindow module', function () {
|
||||||
})
|
})
|
||||||
w.loadURL('file://' + path.join(fixtures, 'api', 'native-window-open.html#blank'))
|
w.loadURL('file://' + path.join(fixtures, 'api', 'native-window-open.html#blank'))
|
||||||
})
|
})
|
||||||
|
|
||||||
it('opens window of same domain with cross-scripting enabled', (done) => {
|
it('opens window of same domain with cross-scripting enabled', (done) => {
|
||||||
ipcMain.once('answer', (event, content) => {
|
ipcMain.once('answer', (event, content) => {
|
||||||
assert.equal(content, 'Hello')
|
assert.equal(content, 'Hello')
|
||||||
|
@ -1108,17 +1110,20 @@ describe('BrowserWindow module', function () {
|
||||||
})
|
})
|
||||||
w.loadURL('file://' + path.join(fixtures, 'api', 'native-window-open.html#file'))
|
w.loadURL('file://' + path.join(fixtures, 'api', 'native-window-open.html#file'))
|
||||||
})
|
})
|
||||||
it('loads native addons correctly after reload', (done) => {
|
|
||||||
ipcMain.once('answer', (event, content) => {
|
if (process.platform !== 'win32' || process.execPath.toLowerCase().indexOf('\\out\\d\\') === -1) {
|
||||||
assert.equal(content, 'function')
|
it('loads native addons correctly after reload', (done) => {
|
||||||
ipcMain.once('answer', (event, content) => {
|
ipcMain.once('answer', (event, content) => {
|
||||||
assert.equal(content, 'function')
|
assert.equal(content, 'function')
|
||||||
done()
|
ipcMain.once('answer', (event, content) => {
|
||||||
|
assert.equal(content, 'function')
|
||||||
|
done()
|
||||||
|
})
|
||||||
|
w.reload()
|
||||||
})
|
})
|
||||||
w.reload()
|
w.loadURL('file://' + path.join(fixtures, 'api', 'native-window-open.html#native-addon'))
|
||||||
})
|
})
|
||||||
w.loadURL('file://' + path.join(fixtures, 'api', 'native-window-open.html#native-addon'))
|
}
|
||||||
})
|
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue