Add spec for native window.open from iframe

This commit is contained in:
Kevin Sawicki 2017-05-24 11:30:25 -07:00
parent 8f22e6a265
commit f5cf6d4ddd
3 changed files with 19 additions and 1 deletions

View file

@ -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) => {