Commit dda6fbd4 by polesye

Fix typo.

parent 73011383
...@@ -5,17 +5,16 @@ require( ...@@ -5,17 +5,16 @@ require(
function (Resizer) { function (Resizer) {
describe('Resizer', function () { describe('Resizer', function () {
var config, container, element;
beforeEach(function () {
var html = [ var html = [
'<div class="rszr-wrapper" style="width:200px; height: 200px;">', '<div class="rszr-wrapper" style="width:200px; height: 200px;">',
'<div class="rszr-el" style="width:100px; height: 150px;">', '<div class="rszr-el" style="width:100px; height: 150px;">',
'Content', 'Content',
'</div>', '</div>',
'</div>' '</div>'
].join(''); ].join(''),
config, container, element;
beforeEach(function () {
setFixtures(html); setFixtures(html);
container = $('.rszr-wrapper'); container = $('.rszr-wrapper');
...@@ -58,10 +57,10 @@ function (Resizer) { ...@@ -58,10 +57,10 @@ function (Resizer) {
realHeight = element.height(), realHeight = element.height(),
expectedWidth = 50; expectedWidth = 50;
// conatinerRatio >= elementRatio // containerRatio >= elementRatio
expect(realHeight).toBe(expectedHeight); expect(realHeight).toBe(expectedHeight);
// conatinerRatio < elementRatio // containerRatio < elementRatio
container.width(expectedWidth); container.width(expectedWidth);
resizer.align(); resizer.align();
realWidth = element.width(); realWidth = element.width();
...@@ -76,10 +75,10 @@ function (Resizer) { ...@@ -76,10 +75,10 @@ function (Resizer) {
realHeight = element.height(), realHeight = element.height(),
expectedWidth = 50; expectedWidth = 50;
// conatinerRatio >= elementRatio // containerRatio >= elementRatio
expect(realHeight).toBe(expectedHeight); expect(realHeight).toBe(expectedHeight);
// conatinerRatio < elementRatio // containerRatio < elementRatio
container.width(expectedWidth); container.width(expectedWidth);
resizer.setMode('width'); resizer.setMode('width');
realWidth = element.width(); realWidth = element.width();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment