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,6 +1110,8 @@ 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'))
|
||||||
})
|
})
|
||||||
|
|
||||||
|
if (process.platform !== 'win32' || process.execPath.toLowerCase().indexOf('\\out\\d\\') === -1) {
|
||||||
it('loads native addons correctly after reload', (done) => {
|
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')
|
||||||
|
@ -1119,6 +1123,7 @@ describe('BrowserWindow module', function () {
|
||||||
})
|
})
|
||||||
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