Add spec for native window.open from iframe
This commit is contained in:
parent
8f22e6a265
commit
f5cf6d4ddd
3 changed files with 19 additions and 1 deletions
|
@ -1285,6 +1285,14 @@ describe('BrowserWindow module', function () {
|
|||
w.loadURL('file://' + path.join(fixtures, 'api', 'native-window-open-file.html'))
|
||||
})
|
||||
|
||||
it('opens window from <iframe> tags', (done) => {
|
||||
ipcMain.once('answer', (event, content) => {
|
||||
assert.equal(content, 'Hello')
|
||||
done()
|
||||
})
|
||||
w.loadURL('file://' + path.join(fixtures, 'api', 'native-window-open-iframe.html'))
|
||||
})
|
||||
|
||||
if (process.platform !== 'win32' || process.execPath.toLowerCase().indexOf('\\out\\d\\') === -1) {
|
||||
it('loads native addons correctly after reload', (done) => {
|
||||
ipcMain.once('answer', (event, content) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue