Merge pull request #4083 from w33ble/fix/resize-test
Use document.documentElement.clientWidth to get width
This commit is contained in:
commit
e3f0479d76
|
@ -61,7 +61,7 @@ define(function (require) {
|
|||
describe('#read', function () {
|
||||
it('gets the proper dimensions for the element', function () {
|
||||
var dimensions = checker.read();
|
||||
var windowWidth = window.innerWidth;
|
||||
var windowWidth = document.documentElement.clientWidth;
|
||||
|
||||
expect(dimensions.w).to.equal(windowWidth);
|
||||
expect(dimensions.h).to.equal(0);
|
||||
|
|
Loading…
Reference in a new issue