mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
Make sure test closes window
Newly added test was leaving window open causing tests to fail
This commit is contained in:
@@ -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)
|
||||
})
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user