1
0
mirror of https://github.com/videojs/video.js.git synced 2025-01-19 10:54:16 +02:00

fix jshint errors

This commit is contained in:
Gary Katsevman 2013-05-01 13:02:05 -04:00
parent b36665ebcd
commit fc96ef68ac

View File

@ -208,17 +208,17 @@ test('should get an absolute URL', function(){
test('vjs.findPosition should find top and left position', function() {
var d = document.createElement('div'),
position = vjs.findPosition(d);
d.style.top = "10px";
d.style.left = "20px";
d.style.position = "absolute";
d.style.top = '10px';
d.style.left = '20px';
d.style.position = 'absolute';
deepEqual(position, {left: 0, top: 0}, "If element isn't in the DOM, we should get zeros");
deepEqual(position, {left: 0, top: 0}, 'If element isn\'t in the DOM, we should get zeros');
document.body.appendChild(d);
position = vjs.findPosition(d);
deepEqual(position, {left: 20, top: 10}, "The position was not correct");
deepEqual(position, {left: 20, top: 10}, 'The position was not correct');
d.getBoundingClientRect = null;
position = vjs.findPosition(d);
deepEqual(position, {left: 0, top: 0}, "If there is no gBCR, we should get zeros");
})
deepEqual(position, {left: 0, top: 0}, 'If there is no gBCR, we should get zeros');
});