use document.documentElement.clientWidth to get width

This commit is contained in:
Joe Fleming 2015-06-02 17:02:01 -07:00
parent 2c8e0316e0
commit b66834c071

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