Merge pull request #10690 from electron/fix-tabbed-window-test

Fix failing tests on master
This commit is contained in:
John Kleinschmidt 2017-10-04 14:29:38 -04:00 committed by GitHub
commit 2d269fb7f1

View file

@ -709,15 +709,16 @@ describe('BrowserWindow module', function () {
})
})
describe('BrowserWindow.addTabbedWindow()', function () {
describe('BrowserWindow.addTabbedWindow()', function (done) {
it('does not throw', function () {
if (process.platform !== 'darwin') {
return
}
const tabbedWindow = new BrowserWindow({})
assert.doesNotThrow(() => {
w.addTabbedWindow(new BrowserWindow({}))
w.addTabbedWindow(tabbedWindow)
})
closeWindow(tabbedWindow).then(done)
})
})