Revert [28217].
Misfired commit for #27936. git-svn-id: https://develop.svn.wordpress.org/trunk@28218 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
5d8f69e0c5
commit
fd26def119
|
@ -113,10 +113,6 @@
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this.get('imageWidth') <= this.get('themeWidth')) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
@ -103,29 +103,6 @@ jQuery( function() {
|
||||||
imageWidth: 10000,
|
imageWidth: 10000,
|
||||||
imageHeight: 8600
|
imageHeight: 8600
|
||||||
});
|
});
|
||||||
|
|
||||||
equal(this.model.shouldBeCropped(), false);
|
|
||||||
});
|
|
||||||
|
|
||||||
test('should not be cropped when the image width is smaller or equal as theme width', function() {
|
|
||||||
this.model.set({
|
|
||||||
themeFlexWidth: false,
|
|
||||||
themeFlexHeight: false,
|
|
||||||
imageWidth: 1000,
|
|
||||||
imageHeight: 100
|
|
||||||
});
|
|
||||||
|
|
||||||
equal(this.model.shouldBeCropped(), false);
|
|
||||||
});
|
|
||||||
|
|
||||||
test('should not be cropped when the image width is smaller or equal as theme width, theme supports flex height and width', function() {
|
|
||||||
this.model.set({
|
|
||||||
themeFlexWidth: true,
|
|
||||||
themeFlexHeight: true,
|
|
||||||
imageWidth: 900,
|
|
||||||
imageHeight: 100
|
|
||||||
});
|
|
||||||
|
|
||||||
equal(this.model.shouldBeCropped(), false);
|
equal(this.model.shouldBeCropped(), false);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue