Add failing spec for icon progress crash

This commit is contained in:
Kevin Sawicki 2016-06-16 14:57:07 -07:00
parent 64ae5cf5a1
commit 52525ef6bc

View file

@ -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)