Merge pull request #10690 from electron/fix-tabbed-window-test
Fix failing tests on master
This commit is contained in:
commit
2d269fb7f1
1 changed files with 4 additions and 3 deletions
|
@ -709,15 +709,16 @@ describe('BrowserWindow module', function () {
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
describe('BrowserWindow.addTabbedWindow()', function () {
|
describe('BrowserWindow.addTabbedWindow()', function (done) {
|
||||||
it('does not throw', function () {
|
it('does not throw', function () {
|
||||||
if (process.platform !== 'darwin') {
|
if (process.platform !== 'darwin') {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
const tabbedWindow = new BrowserWindow({})
|
||||||
assert.doesNotThrow(() => {
|
assert.doesNotThrow(() => {
|
||||||
w.addTabbedWindow(new BrowserWindow({}))
|
w.addTabbedWindow(tabbedWindow)
|
||||||
})
|
})
|
||||||
|
closeWindow(tabbedWindow).then(done)
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue