diff --git a/test/spec/desktop/viewportSize.js b/test/spec/desktop/viewportSize.js index a3372f4f0d2..6fcd240996d 100644 --- a/test/spec/desktop/viewportSize.js +++ b/test/spec/desktop/viewportSize.js @@ -3,43 +3,43 @@ describe('setViewportSize/getViewportSize', function() { beforeEach(function() { return this.client.windowHandleSize({ - width: 500, - height: 500 + width: 600, + height: 600 }); }) it('should change viewport size of current window and should return the exact value', function() { return this.client.setViewportSize({ - width: 700, - height: 700 + width: 800, + height: 800 }, true).getViewportSize().then(function(size) { - size.width.should.be.exactly(700); - size.height.should.be.exactly(700); + size.width.should.be.exactly(800); + size.height.should.be.exactly(800); }); }); it('should set window size exactly when parameter \'type\' is true by default', function() { return this.client.setViewportSize({ - width: 700, - height: 700 + width: 800, + height: 800 }).getViewportSize().then(function(size) { - size.width.should.be.exactly(700); - size.height.should.be.exactly(700); + size.width.should.be.exactly(800); + size.height.should.be.exactly(800); }).windowHandleSize().then(function(res) { - res.value.width.should.be.exactly(700); - res.value.height.should.be.greaterThan(700); + res.value.width.should.be.exactly(800); + res.value.height.should.be.greaterThan(800); }); }); it('should let windowHandleSize return bigger values since it includes menu and status bar heights', function() { return this.client.setViewportSize({ - width: 700, - height: 700 + width: 800, + height: 800 }, false).getViewportSize().then(function(size) { - size.width.should.be.exactly(700); - size.height.should.be.lessThan(700); + size.width.should.be.exactly(800); + size.height.should.be.lessThan(800); }).windowHandleSize().then(function(res) { - res.value.height.should.be.exactly(700); + res.value.height.should.be.exactly(800); }); });