adds test, adds view to AtomNSWindow and minor fixes

This commit is contained in:
gellert 2016-11-10 20:36:21 +01:00 committed by Kevin Sawicki
parent 2cf30c0d63
commit 5e62d28e50
6 changed files with 30 additions and 25 deletions

View file

@ -427,6 +427,18 @@ describe('browser-window module', function () {
})
})
describe('BrowserWindow.setVibrancy(type)', function () {
it('allows setting, changing, and removing the vibrancy', function () {
assert.doesNotThrow(function () {
w.setVibrancy('light')
w.setVibrancy('dark')
w.setVibrancy(null)
w.setVibrancy('ultra-dark')
w.setVibrancy('')
})
})
})
describe('BrowserWindow.fromId(id)', function () {
it('returns the window with id', function () {
assert.equal(w.id, BrowserWindow.fromId(w.id).id)