Change padded image attribute to fullWidth

This commit is contained in:
Tautvidas Sipavičius
2016-02-08 17:38:27 +02:00
parent 2ae3d8ebdf
commit 8b001d820b
19 changed files with 81 additions and 75 deletions

View File

@ -74,7 +74,7 @@ define([
});
it('has image specific alignment', function () {
expect(model.get('imagePadded')).to.be.a('boolean');
expect(model.get('imageFullWidth')).to.be.a('boolean');
});
it('has an option to display author', function () {
@ -129,7 +129,7 @@ define([
titlePosition: 'aboveBlock', // 'inTextBlock'|'aboveBlock',
titleAlignment: 'right', // 'left'|'center'|'right'
titleIsLink: true, // false|true
imagePadded: false, // true|false
imageFullWidth: false, // true|false
//imageAlignment: 'right', // 'centerFull'|'centerPadded'|'left'|'right'|'alternate'|'none'
showAuthor: 'belowText', // 'no'|'aboveText'|'belowText'
authorPrecededBy: 'Custom config author preceded by',
@ -176,7 +176,7 @@ define([
expect(model.get('titlePosition')).to.equal('aboveBlock');
expect(model.get('titleAlignment')).to.equal('right');
expect(model.get('titleIsLink')).to.equal(true);
expect(model.get('imagePadded')).to.equal(false);
expect(model.get('imageFullWidth')).to.equal(false);
expect(model.get('showAuthor')).to.equal('belowText');
expect(model.get('authorPrecededBy')).to.equal('Custom config author preceded by');
expect(model.get('showCategories')).to.equal('belowText');
@ -318,8 +318,8 @@ define([
it('changes the model if image alignment changes', function () {
var newValue = false;
view.$('.mailpoet_posts_image_padded').val(newValue).change();
expect(model.get('imagePadded')).to.equal(newValue);
view.$('.mailpoet_posts_image_full_width').val(newValue).change();
expect(model.get('imageFullWidth')).to.equal(newValue);
});
it('changes the model if show author changes', function () {