Assert single window from closeWindow helper
This commit is contained in:
parent
1afa41477d
commit
d7e7c2b17f
2 changed files with 12 additions and 6 deletions
|
@ -82,10 +82,7 @@ describe('browser-window module', function () {
|
|||
})
|
||||
|
||||
afterEach(function () {
|
||||
return closeWindow(w).then(function () {
|
||||
w = null
|
||||
assert.equal(BrowserWindow.getAllWindows().length, 1)
|
||||
})
|
||||
return closeWindow(w).then(function () { w = null })
|
||||
})
|
||||
|
||||
describe('BrowserWindow.close()', function () {
|
||||
|
@ -859,7 +856,7 @@ describe('browser-window module', function () {
|
|||
assert(/Blocked a frame with origin/.test(exceptionMessage))
|
||||
|
||||
// FIXME this popup window should be closed in sandbox.html
|
||||
closeWindow(popupWindow).then(() => {
|
||||
closeWindow(popupWindow, {assertSingleWindow: false}).then(() => {
|
||||
popupWindow = null
|
||||
done()
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue