mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
Add failing spec for icon progress crash
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user