Assert after size through getContentBounds() API
This commit is contained in:
parent
48cc13d009
commit
79eee0fdf1
1 changed files with 4 additions and 0 deletions
|
@ -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])
|
||||
})
|
||||
})
|
||||
|
||||
|
|
Loading…
Reference in a new issue