Explorar el Código

Rename indent attribute to blockIndent.

Maciej Gołaszewski hace 6 años
padre
commit
6b44bd1bf9

+ 5 - 5
packages/ckeditor5-indent/src/indentblock.js

@@ -67,7 +67,7 @@ export default class IndentBlock extends Plugin {
 
 
 		knownElements.forEach( elementName => {
 		knownElements.forEach( elementName => {
 			if ( schema.isRegistered( elementName ) ) {
 			if ( schema.isRegistered( elementName ) ) {
-				schema.extend( elementName, { allowAttributes: 'indent' } );
+				schema.extend( elementName, { allowAttributes: 'blockIndent' } );
 			}
 			}
 		} );
 		} );
 
 
@@ -128,7 +128,7 @@ export default class IndentBlock extends Plugin {
 				}
 				}
 			},
 			},
 			model: {
 			model: {
-				key: 'indent',
+				key: 'blockIndent',
 				value: viewElement => viewElement.getStyle( 'margin-left' )
 				value: viewElement => viewElement.getStyle( 'margin-left' )
 			}
 			}
 		} );
 		} );
@@ -141,13 +141,13 @@ export default class IndentBlock extends Plugin {
 				}
 				}
 			},
 			},
 			model: {
 			model: {
-				key: 'indent',
+				key: 'blockIndent',
 				value: viewElement => normalizeToMarginLeftStyle( viewElement.getStyle( 'margin' ) )
 				value: viewElement => normalizeToMarginLeftStyle( viewElement.getStyle( 'margin' ) )
 			}
 			}
 		} );
 		} );
 
 
 		conversion.for( 'downcast' ).attributeToAttribute( {
 		conversion.for( 'downcast' ).attributeToAttribute( {
-			model: 'indent',
+			model: 'blockIndent',
 			view: modelAttributeValue => {
 			view: modelAttributeValue => {
 				return {
 				return {
 					key: 'style',
 					key: 'style',
@@ -168,7 +168,7 @@ export default class IndentBlock extends Plugin {
 	_setupConversionUsingClasses( classes ) {
 	_setupConversionUsingClasses( classes ) {
 		const definition = {
 		const definition = {
 			model: {
 			model: {
-				key: 'indent',
+				key: 'blockIndent',
 				values: []
 				values: []
 			},
 			},
 			view: {}
 			view: {}

+ 5 - 5
packages/ckeditor5-indent/src/indentblockcommand.js

@@ -56,13 +56,13 @@ export default class IndentBlockCommand extends Command {
 		const block = first( model.document.selection.getSelectedBlocks() );
 		const block = first( model.document.selection.getSelectedBlocks() );
 
 
 		// If selection is not in a list item, the command is disabled.
 		// If selection is not in a list item, the command is disabled.
-		if ( !block || !model.schema.checkAttribute( block, 'indent' ) ) {
+		if ( !block || !model.schema.checkAttribute( block, 'blockIndent' ) ) {
 			this.isEnabled = false;
 			this.isEnabled = false;
 
 
 			return;
 			return;
 		}
 		}
 
 
-		this.isEnabled = this._indentBehavior.checkEnabled( block.getAttribute( 'indent' ) );
+		this.isEnabled = this._indentBehavior.checkEnabled( block.getAttribute( 'blockIndent' ) );
 	}
 	}
 
 
 	/**
 	/**
@@ -76,14 +76,14 @@ export default class IndentBlockCommand extends Command {
 
 
 		model.change( writer => {
 		model.change( writer => {
 			for ( const item of itemsToChange ) {
 			for ( const item of itemsToChange ) {
-				const currentIndent = item.getAttribute( 'indent' );
+				const currentIndent = item.getAttribute( 'blockIndent' );
 
 
 				const newIndent = this._indentBehavior.getNewIndent( currentIndent );
 				const newIndent = this._indentBehavior.getNewIndent( currentIndent );
 
 
 				if ( newIndent ) {
 				if ( newIndent ) {
-					writer.setAttribute( 'indent', newIndent, item );
+					writer.setAttribute( 'blockIndent', newIndent, item );
 				} else {
 				} else {
-					writer.removeAttribute( 'indent', item );
+					writer.removeAttribute( 'blockIndent', item );
 				}
 				}
 			}
 			}
 		} );
 		} );

+ 4 - 4
packages/ckeditor5-indent/tests/indentblock-integration.js

@@ -47,8 +47,8 @@ describe( 'IndentBlock - integration', () => {
 
 
 			const paragraph = doc.getRoot().getChild( 0 );
 			const paragraph = doc.getRoot().getChild( 0 );
 
 
-			expect( paragraph.hasAttribute( 'indent' ) ).to.be.true;
-			expect( paragraph.getAttribute( 'indent' ) ).to.equal( '50px' );
+			expect( paragraph.hasAttribute( 'blockIndent' ) ).to.be.true;
+			expect( paragraph.getAttribute( 'blockIndent' ) ).to.equal( '50px' );
 
 
 			expect( editor.getData() ).to.equal( '<p style="margin-left:50px;">foo</p>' );
 			expect( editor.getData() ).to.equal( '<p style="margin-left:50px;">foo</p>' );
 			expect( getViewData( editor.editing.view, { withoutSelection: true } ) )
 			expect( getViewData( editor.editing.view, { withoutSelection: true } ) )
@@ -73,8 +73,8 @@ describe( 'IndentBlock - integration', () => {
 
 
 			const paragraph = doc.getRoot().getChild( 0 );
 			const paragraph = doc.getRoot().getChild( 0 );
 
 
-			expect( paragraph.hasAttribute( 'indent' ) ).to.be.true;
-			expect( paragraph.getAttribute( 'indent' ) ).to.equal( '50px' );
+			expect( paragraph.hasAttribute( 'blockIndent' ) ).to.be.true;
+			expect( paragraph.getAttribute( 'blockIndent' ) ).to.equal( '50px' );
 
 
 			expect( editor.getData() ).to.equal( '<p style="margin-left:50px;">foo</p>' );
 			expect( editor.getData() ).to.equal( '<p style="margin-left:50px;">foo</p>' );
 			expect( getViewData( editor.editing.view, { withoutSelection: true } ) )
 			expect( getViewData( editor.editing.view, { withoutSelection: true } ) )

+ 21 - 21
packages/ckeditor5-indent/tests/indentblock.js

@@ -51,10 +51,10 @@ describe( 'IndentBlock', () => {
 			.then( newEditor => {
 			.then( newEditor => {
 				model = newEditor.model;
 				model = newEditor.model;
 
 
-				expect( model.schema.checkAttribute( [ 'paragraph' ], 'indent' ) ).to.be.true;
-				expect( model.schema.checkAttribute( [ 'heading1' ], 'indent' ) ).to.be.true;
-				expect( model.schema.checkAttribute( [ 'heading2' ], 'indent' ) ).to.be.true;
-				expect( model.schema.checkAttribute( [ 'heading3' ], 'indent' ) ).to.be.true;
+				expect( model.schema.checkAttribute( [ 'paragraph' ], 'blockIndent' ) ).to.be.true;
+				expect( model.schema.checkAttribute( [ 'heading1' ], 'blockIndent' ) ).to.be.true;
+				expect( model.schema.checkAttribute( [ 'heading2' ], 'blockIndent' ) ).to.be.true;
+				expect( model.schema.checkAttribute( [ 'heading3' ], 'blockIndent' ) ).to.be.true;
 			} );
 			} );
 	} );
 	} );
 
 
@@ -93,8 +93,8 @@ describe( 'IndentBlock', () => {
 
 
 				const paragraph = doc.getRoot().getChild( 0 );
 				const paragraph = doc.getRoot().getChild( 0 );
 
 
-				expect( paragraph.hasAttribute( 'indent' ) ).to.be.true;
-				expect( paragraph.getAttribute( 'indent' ) ).to.equal( '50px' );
+				expect( paragraph.hasAttribute( 'blockIndent' ) ).to.be.true;
+				expect( paragraph.getAttribute( 'blockIndent' ) ).to.equal( '50px' );
 
 
 				expect( editor.getData() ).to.equal( '<p style="margin-left:50px;">foo</p>' );
 				expect( editor.getData() ).to.equal( '<p style="margin-left:50px;">foo</p>' );
 				expect( getViewData( editor.editing.view, { withoutSelection: true } ) )
 				expect( getViewData( editor.editing.view, { withoutSelection: true } ) )
@@ -106,8 +106,8 @@ describe( 'IndentBlock', () => {
 
 
 				const paragraph = doc.getRoot().getChild( 0 );
 				const paragraph = doc.getRoot().getChild( 0 );
 
 
-				expect( paragraph.hasAttribute( 'indent' ) ).to.be.true;
-				expect( paragraph.getAttribute( 'indent' ) ).to.equal( '42em' );
+				expect( paragraph.hasAttribute( 'blockIndent' ) ).to.be.true;
+				expect( paragraph.getAttribute( 'blockIndent' ) ).to.equal( '42em' );
 
 
 				expect( editor.getData() ).to.equal( '<p style="margin-left:42em;">foo</p>' );
 				expect( editor.getData() ).to.equal( '<p style="margin-left:42em;">foo</p>' );
 				expect( getViewData( editor.editing.view, { withoutSelection: true } ) )
 				expect( getViewData( editor.editing.view, { withoutSelection: true } ) )
@@ -119,8 +119,8 @@ describe( 'IndentBlock', () => {
 
 
 				const paragraph = doc.getRoot().getChild( 0 );
 				const paragraph = doc.getRoot().getChild( 0 );
 
 
-				expect( paragraph.hasAttribute( 'indent' ) ).to.be.true;
-				expect( paragraph.getAttribute( 'indent' ) ).to.equal( '42em' );
+				expect( paragraph.hasAttribute( 'blockIndent' ) ).to.be.true;
+				expect( paragraph.getAttribute( 'blockIndent' ) ).to.equal( '42em' );
 
 
 				expect( editor.getData() ).to.equal( '<p style="margin-left:42em;">foo</p>' );
 				expect( editor.getData() ).to.equal( '<p style="margin-left:42em;">foo</p>' );
 				expect( getViewData( editor.editing.view, { withoutSelection: true } ) )
 				expect( getViewData( editor.editing.view, { withoutSelection: true } ) )
@@ -132,8 +132,8 @@ describe( 'IndentBlock', () => {
 
 
 				const paragraph = doc.getRoot().getChild( 0 );
 				const paragraph = doc.getRoot().getChild( 0 );
 
 
-				expect( paragraph.hasAttribute( 'indent' ) ).to.be.true;
-				expect( paragraph.getAttribute( 'indent' ) ).to.equal( '42em' );
+				expect( paragraph.hasAttribute( 'blockIndent' ) ).to.be.true;
+				expect( paragraph.getAttribute( 'blockIndent' ) ).to.equal( '42em' );
 
 
 				expect( editor.getData() ).to.equal( '<p style="margin-left:42em;">foo</p>' );
 				expect( editor.getData() ).to.equal( '<p style="margin-left:42em;">foo</p>' );
 				expect( getViewData( editor.editing.view, { withoutSelection: true } ) )
 				expect( getViewData( editor.editing.view, { withoutSelection: true } ) )
@@ -145,8 +145,8 @@ describe( 'IndentBlock', () => {
 
 
 				const paragraph = doc.getRoot().getChild( 0 );
 				const paragraph = doc.getRoot().getChild( 0 );
 
 
-				expect( paragraph.hasAttribute( 'indent' ) ).to.be.true;
-				expect( paragraph.getAttribute( 'indent' ) ).to.equal( '42em' );
+				expect( paragraph.hasAttribute( 'blockIndent' ) ).to.be.true;
+				expect( paragraph.getAttribute( 'blockIndent' ) ).to.equal( '42em' );
 
 
 				expect( editor.getData() ).to.equal( '<p style="margin-left:42em;">foo</p>' );
 				expect( editor.getData() ).to.equal( '<p style="margin-left:42em;">foo</p>' );
 				expect( getViewData( editor.editing.view, { withoutSelection: true } ) )
 				expect( getViewData( editor.editing.view, { withoutSelection: true } ) )
@@ -158,8 +158,8 @@ describe( 'IndentBlock', () => {
 
 
 				const paragraph = doc.getRoot().getChild( 0 );
 				const paragraph = doc.getRoot().getChild( 0 );
 
 
-				expect( paragraph.hasAttribute( 'indent' ) ).to.be.true;
-				expect( paragraph.getAttribute( 'indent' ) ).to.equal( '42em' );
+				expect( paragraph.hasAttribute( 'blockIndent' ) ).to.be.true;
+				expect( paragraph.getAttribute( 'blockIndent' ) ).to.equal( '42em' );
 
 
 				expect( editor.getData() ).to.equal( '<p style="margin-left:42em;">foo</p>' );
 				expect( editor.getData() ).to.equal( '<p style="margin-left:42em;">foo</p>' );
 				expect( getViewData( editor.editing.view, { withoutSelection: true } ) )
 				expect( getViewData( editor.editing.view, { withoutSelection: true } ) )
@@ -171,7 +171,7 @@ describe( 'IndentBlock', () => {
 
 
 				const paragraph = doc.getRoot().getChild( 0 );
 				const paragraph = doc.getRoot().getChild( 0 );
 
 
-				expect( paragraph.hasAttribute( 'indent' ) ).to.be.false;
+				expect( paragraph.hasAttribute( 'blockIndent' ) ).to.be.false;
 
 
 				const expectedView = '<p>foo</p>';
 				const expectedView = '<p>foo</p>';
 
 
@@ -198,8 +198,8 @@ describe( 'IndentBlock', () => {
 
 
 				const paragraph = doc.getRoot().getChild( 0 );
 				const paragraph = doc.getRoot().getChild( 0 );
 
 
-				expect( paragraph.hasAttribute( 'indent' ) ).to.be.true;
-				expect( paragraph.getAttribute( 'indent' ) ).to.equal( 'indent-1' );
+				expect( paragraph.hasAttribute( 'blockIndent' ) ).to.be.true;
+				expect( paragraph.getAttribute( 'blockIndent' ) ).to.equal( 'indent-1' );
 
 
 				const expectedView = '<p class="indent-1">foo</p>';
 				const expectedView = '<p class="indent-1">foo</p>';
 
 
@@ -212,7 +212,7 @@ describe( 'IndentBlock', () => {
 
 
 				const paragraph = doc.getRoot().getChild( 0 );
 				const paragraph = doc.getRoot().getChild( 0 );
 
 
-				expect( paragraph.hasAttribute( 'indent' ) ).to.be.false;
+				expect( paragraph.hasAttribute( 'blockIndent' ) ).to.be.false;
 
 
 				const expectedView = '<p>foo</p>';
 				const expectedView = '<p>foo</p>';
 
 
@@ -225,7 +225,7 @@ describe( 'IndentBlock', () => {
 
 
 				const paragraph = doc.getRoot().getChild( 0 );
 				const paragraph = doc.getRoot().getChild( 0 );
 
 
-				expect( paragraph.hasAttribute( 'indent' ) ).to.be.false;
+				expect( paragraph.hasAttribute( 'blockIndent' ) ).to.be.false;
 
 
 				const expectedView = '<p>foo</p>';
 				const expectedView = '<p>foo</p>';
 
 

+ 27 - 27
packages/ckeditor5-indent/tests/indentblockcommand.js

@@ -22,7 +22,7 @@ describe( 'IndentBlockCommand', () => {
 
 
 				model.schema.register( 'paragraph', {
 				model.schema.register( 'paragraph', {
 					inheritAllFrom: '$block',
 					inheritAllFrom: '$block',
-					allowAttributes: [ 'indent' ]
+					allowAttributes: [ 'blockIndent' ]
 				} );
 				} );
 				model.schema.register( 'block', { inheritAllFrom: '$block' } );
 				model.schema.register( 'block', { inheritAllFrom: '$block' } );
 			} );
 			} );
@@ -60,12 +60,12 @@ describe( 'IndentBlockCommand', () => {
 				} );
 				} );
 
 
 				it( 'should be true in indented block and there are still indentation classes', () => {
 				it( 'should be true in indented block and there are still indentation classes', () => {
-					setData( model, '<paragraph indent="indent-2">f[]oo</paragraph>' );
+					setData( model, '<paragraph blockIndent="indent-2">f[]oo</paragraph>' );
 					expect( command.isEnabled ).to.be.true;
 					expect( command.isEnabled ).to.be.true;
 				} );
 				} );
 
 
 				it( 'should be false in indented block in last indentation class', () => {
 				it( 'should be false in indented block in last indentation class', () => {
-					setData( model, '<paragraph indent="indent-4">f[]oo</paragraph>' );
+					setData( model, '<paragraph blockIndent="indent-4">f[]oo</paragraph>' );
 					expect( command.isEnabled ).to.be.false;
 					expect( command.isEnabled ).to.be.false;
 				} );
 				} );
 			} );
 			} );
@@ -74,13 +74,13 @@ describe( 'IndentBlockCommand', () => {
 				it( 'should set first indent class for non-indented block', () => {
 				it( 'should set first indent class for non-indented block', () => {
 					setData( model, '<paragraph>f[]oo</paragraph>' );
 					setData( model, '<paragraph>f[]oo</paragraph>' );
 					command.execute();
 					command.execute();
-					expect( getData( model ) ).to.equal( '<paragraph indent="indent-1">f[]oo</paragraph>' );
+					expect( getData( model ) ).to.equal( '<paragraph blockIndent="indent-1">f[]oo</paragraph>' );
 				} );
 				} );
 
 
 				it( 'should set next indent class for indented block', () => {
 				it( 'should set next indent class for indented block', () => {
-					setData( model, '<paragraph indent="indent-2">f[]oo</paragraph>' );
+					setData( model, '<paragraph blockIndent="indent-2">f[]oo</paragraph>' );
 					command.execute();
 					command.execute();
-					expect( getData( model ) ).to.equal( '<paragraph indent="indent-3">f[]oo</paragraph>' );
+					expect( getData( model ) ).to.equal( '<paragraph blockIndent="indent-3">f[]oo</paragraph>' );
 				} );
 				} );
 			} );
 			} );
 		} );
 		} );
@@ -106,12 +106,12 @@ describe( 'IndentBlockCommand', () => {
 				} );
 				} );
 
 
 				it( 'should be true in indented block', () => {
 				it( 'should be true in indented block', () => {
-					setData( model, '<paragraph indent="50px">f[]oo</paragraph>' );
+					setData( model, '<paragraph blockIndent="50px">f[]oo</paragraph>' );
 					expect( command.isEnabled ).to.be.true;
 					expect( command.isEnabled ).to.be.true;
 				} );
 				} );
 
 
 				it( 'should be true in indented block with different unit', () => {
 				it( 'should be true in indented block with different unit', () => {
-					setData( model, '<paragraph indent="2em">f[]oo</paragraph>' );
+					setData( model, '<paragraph blockIndent="2em">f[]oo</paragraph>' );
 					expect( command.isEnabled ).to.be.true;
 					expect( command.isEnabled ).to.be.true;
 				} );
 				} );
 			} );
 			} );
@@ -120,25 +120,25 @@ describe( 'IndentBlockCommand', () => {
 				it( 'should set first offset for non-indented block', () => {
 				it( 'should set first offset for non-indented block', () => {
 					setData( model, '<paragraph>f[]oo</paragraph>' );
 					setData( model, '<paragraph>f[]oo</paragraph>' );
 					command.execute();
 					command.execute();
-					expect( getData( model ) ).to.equal( '<paragraph indent="50px">f[]oo</paragraph>' );
+					expect( getData( model ) ).to.equal( '<paragraph blockIndent="50px">f[]oo</paragraph>' );
 				} );
 				} );
 
 
 				it( 'should calculate next offset for indented block', () => {
 				it( 'should calculate next offset for indented block', () => {
-					setData( model, '<paragraph indent="100px">f[]oo</paragraph>' );
+					setData( model, '<paragraph blockIndent="100px">f[]oo</paragraph>' );
 					command.execute();
 					command.execute();
-					expect( getData( model ) ).to.equal( '<paragraph indent="150px">f[]oo</paragraph>' );
+					expect( getData( model ) ).to.equal( '<paragraph blockIndent="150px">f[]oo</paragraph>' );
 				} );
 				} );
 
 
 				it( 'should calculate next offset for indented block even if current indent is not tied to offset', () => {
 				it( 'should calculate next offset for indented block even if current indent is not tied to offset', () => {
-					setData( model, '<paragraph indent="27px">f[]oo</paragraph>' );
+					setData( model, '<paragraph blockIndent="27px">f[]oo</paragraph>' );
 					command.execute();
 					command.execute();
-					expect( getData( model ) ).to.equal( '<paragraph indent="77px">f[]oo</paragraph>' );
+					expect( getData( model ) ).to.equal( '<paragraph blockIndent="77px">f[]oo</paragraph>' );
 				} );
 				} );
 
 
 				it( 'should set first offset if current indent has different unit', () => {
 				it( 'should set first offset if current indent has different unit', () => {
-					setData( model, '<paragraph indent="3mm">f[]oo</paragraph>' );
+					setData( model, '<paragraph blockIndent="3mm">f[]oo</paragraph>' );
 					command.execute();
 					command.execute();
-					expect( getData( model ) ).to.equal( '<paragraph indent="50px">f[]oo</paragraph>' );
+					expect( getData( model ) ).to.equal( '<paragraph blockIndent="50px">f[]oo</paragraph>' );
 				} );
 				} );
 			} );
 			} );
 		} );
 		} );
@@ -170,21 +170,21 @@ describe( 'IndentBlockCommand', () => {
 				} );
 				} );
 
 
 				it( 'should be true in indented block and there are still indentation classes', () => {
 				it( 'should be true in indented block and there are still indentation classes', () => {
-					setData( model, '<paragraph indent="indent-2">f[]oo</paragraph>' );
+					setData( model, '<paragraph blockIndent="indent-2">f[]oo</paragraph>' );
 					expect( command.isEnabled ).to.be.true;
 					expect( command.isEnabled ).to.be.true;
 				} );
 				} );
 
 
 				it( 'should be true in indented block in last indentation class', () => {
 				it( 'should be true in indented block in last indentation class', () => {
-					setData( model, '<paragraph indent="indent-4">f[]oo</paragraph>' );
+					setData( model, '<paragraph blockIndent="indent-4">f[]oo</paragraph>' );
 					expect( command.isEnabled ).to.be.true;
 					expect( command.isEnabled ).to.be.true;
 				} );
 				} );
 			} );
 			} );
 
 
 			describe( 'execute()', () => {
 			describe( 'execute()', () => {
 				it( 'should set previous indent class for indented block', () => {
 				it( 'should set previous indent class for indented block', () => {
-					setData( model, '<paragraph indent="indent-2">f[]oo</paragraph>' );
+					setData( model, '<paragraph blockIndent="indent-2">f[]oo</paragraph>' );
 					command.execute();
 					command.execute();
-					expect( getData( model ) ).to.equal( '<paragraph indent="indent-1">f[]oo</paragraph>' );
+					expect( getData( model ) ).to.equal( '<paragraph blockIndent="indent-1">f[]oo</paragraph>' );
 				} );
 				} );
 			} );
 			} );
 		} );
 		} );
@@ -210,37 +210,37 @@ describe( 'IndentBlockCommand', () => {
 				} );
 				} );
 
 
 				it( 'should be true in indented block', () => {
 				it( 'should be true in indented block', () => {
-					setData( model, '<paragraph indent="50px">f[]oo</paragraph>' );
+					setData( model, '<paragraph blockIndent="50px">f[]oo</paragraph>' );
 					expect( command.isEnabled ).to.be.true;
 					expect( command.isEnabled ).to.be.true;
 				} );
 				} );
 
 
 				it( 'should be true in indented block with different unit', () => {
 				it( 'should be true in indented block with different unit', () => {
-					setData( model, '<paragraph indent="2em">f[]oo</paragraph>' );
+					setData( model, '<paragraph blockIndent="2em">f[]oo</paragraph>' );
 					expect( command.isEnabled ).to.be.true;
 					expect( command.isEnabled ).to.be.true;
 				} );
 				} );
 			} );
 			} );
 
 
 			describe( 'execute()', () => {
 			describe( 'execute()', () => {
 				it( 'should set remove offset if indent is on first offset', () => {
 				it( 'should set remove offset if indent is on first offset', () => {
-					setData( model, '<paragraph indent="50px">f[]oo</paragraph>' );
+					setData( model, '<paragraph blockIndent="50px">f[]oo</paragraph>' );
 					command.execute();
 					command.execute();
 					expect( getData( model ) ).to.equal( '<paragraph>f[]oo</paragraph>' );
 					expect( getData( model ) ).to.equal( '<paragraph>f[]oo</paragraph>' );
 				} );
 				} );
 
 
 				it( 'should calculate next offset for indented block', () => {
 				it( 'should calculate next offset for indented block', () => {
-					setData( model, '<paragraph indent="100px">f[]oo</paragraph>' );
+					setData( model, '<paragraph blockIndent="100px">f[]oo</paragraph>' );
 					command.execute();
 					command.execute();
-					expect( getData( model ) ).to.equal( '<paragraph indent="50px">f[]oo</paragraph>' );
+					expect( getData( model ) ).to.equal( '<paragraph blockIndent="50px">f[]oo</paragraph>' );
 				} );
 				} );
 
 
 				it( 'should calculate next offset for indented block even if current indent is not tied to offset', () => {
 				it( 'should calculate next offset for indented block even if current indent is not tied to offset', () => {
-					setData( model, '<paragraph indent="92px">f[]oo</paragraph>' );
+					setData( model, '<paragraph blockIndent="92px">f[]oo</paragraph>' );
 					command.execute();
 					command.execute();
-					expect( getData( model ) ).to.equal( '<paragraph indent="42px">f[]oo</paragraph>' );
+					expect( getData( model ) ).to.equal( '<paragraph blockIndent="42px">f[]oo</paragraph>' );
 				} );
 				} );
 
 
 				it( 'should remove offset if current indent has different unit', () => {
 				it( 'should remove offset if current indent has different unit', () => {
-					setData( model, '<paragraph indent="3mm">f[]oo</paragraph>' );
+					setData( model, '<paragraph blockIndent="3mm">f[]oo</paragraph>' );
 					command.execute();
 					command.execute();
 					expect( getData( model ) ).to.equal( '<paragraph>f[]oo</paragraph>' );
 					expect( getData( model ) ).to.equal( '<paragraph>f[]oo</paragraph>' );
 				} );
 				} );