diff --git a/common/lib/xmodule/xmodule/js/spec/video/resizer_spec.js b/common/lib/xmodule/xmodule/js/spec/video/resizer_spec.js index 501f844ffd..a05e9e8bb8 100644 --- a/common/lib/xmodule/xmodule/js/spec/video/resizer_spec.js +++ b/common/lib/xmodule/xmodule/js/spec/video/resizer_spec.js @@ -5,17 +5,16 @@ require( function (Resizer) { describe('Resizer', function () { - var config, container, element; - - beforeEach(function () { - var html = [ + var html = [ '
', '
', 'Content', '
', '
' - ].join(''); + ].join(''), + config, container, element; + beforeEach(function () { setFixtures(html); container = $('.rszr-wrapper'); @@ -58,10 +57,10 @@ function (Resizer) { realHeight = element.height(), expectedWidth = 50; - // conatinerRatio >= elementRatio + // containerRatio >= elementRatio expect(realHeight).toBe(expectedHeight); - // conatinerRatio < elementRatio + // containerRatio < elementRatio container.width(expectedWidth); resizer.align(); realWidth = element.width(); @@ -76,10 +75,10 @@ function (Resizer) { realHeight = element.height(), expectedWidth = 50; - // conatinerRatio >= elementRatio + // containerRatio >= elementRatio expect(realHeight).toBe(expectedHeight); - // conatinerRatio < elementRatio + // containerRatio < elementRatio container.width(expectedWidth); resizer.setMode('width'); realWidth = element.width();