Add failing spec for icon progress crash
This commit is contained in:
parent
64ae5cf5a1
commit
52525ef6bc
1 changed files with 11 additions and 0 deletions
|
@ -337,6 +337,17 @@ describe('browser-window module', function () {
|
|||
})
|
||||
})
|
||||
|
||||
describe('BrowserWindow.setProgressBar(progress)', function () {
|
||||
it('sets the progress', function () {
|
||||
assert.doesNotThrow(function () {
|
||||
if (process.platform === 'darwin') {
|
||||
app.dock.setIcon(path.join(fixtures, 'assets', 'logo.png'))
|
||||
}
|
||||
w.setProgressBar(.5)
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
describe('BrowserWindow.fromId(id)', function () {
|
||||
it('returns the window with id', function () {
|
||||
assert.equal(w.id, BrowserWindow.fromId(w.id).id)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue