Merge pull request #4083 from w33ble/fix/resize-test

Use document.documentElement.clientWidth to get width
This commit is contained in:
Khalah Jones Golden 2015-06-03 15:25:11 -04:00
commit e3f0479d76

View file

@ -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);