Assert after size through getContentBounds() API

This commit is contained in:
Kevin Sawicki 2016-07-29 09:08:23 -07:00
parent 48cc13d009
commit 79eee0fdf1

View file

@ -332,6 +332,8 @@ describe('browser-window module', function () {
var after = w.getContentSize()
assert.equal(after[0], size[0])
assert.equal(after[1], size[1])
assert.equal(w.getContentBounds().width, size[0])
assert.equal(w.getContentBounds().height, size[1])
})
it('works for framless window', function () {
@ -347,6 +349,8 @@ describe('browser-window module', function () {
var after = w.getContentSize()
assert.equal(after[0], size[0])
assert.equal(after[1], size[1])
assert.equal(w.getContentBounds().width, size[0])
assert.equal(w.getContentBounds().height, size[1])
})
})