Add window opacity support

This commit is contained in:
Ted Kim 2017-09-29 11:26:02 +09:00
parent 0c9ada08a4
commit 7f2c4a9e06
11 changed files with 57 additions and 0 deletions

View file

@ -795,6 +795,26 @@ describe('BrowserWindow module', function () {
})
})
describe('BrowserWindow.setOpacity(opacity)', function () {
it('make window with initial opacity', function () {
w.destroy()
w = new BrowserWindow({
show: false,
width: 400,
height: 400,
opacity: 0.5
})
})
it('allows setting the opacity', function () {
assert.doesNotThrow(function () {
w.setOpacity(0.0)
w.setOpacity(0.5)
w.setOpacity(1.0)
})
})
})
describe('"useContentSize" option', function () {
it('make window created with content size when used', function () {
w.destroy()