Add support for BrowserView autoresizing

This commit is contained in:
Birunthan Mohanathas 2017-04-12 14:40:31 +03:00
parent 638eae1080
commit 06fcf2c19d
9 changed files with 121 additions and 4 deletions

View file

@ -38,6 +38,21 @@ describe('View module', function () {
})
})
describe('BrowserView.setAutoResize()', function () {
it('does not throw for valid args', function () {
const view = new BrowserView()
view.setAutoResize({})
view.setAutoResize({ width: true, height: false })
})
it('throws for invalid args', function () {
const view = new BrowserView()
assert.throws(function () {
view.setAutoResize(null)
}, /conversion failure/)
})
})
describe('BrowserView.setBounds()', function () {
it('does not throw for valid args', function () {
const view = new BrowserView()