8
0
Maciej Gołaszewski 6 лет назад
Родитель
Сommit
8054274d34

+ 0 - 1
packages/ckeditor5-indent/src/indentblockcommand.js

@@ -55,7 +55,6 @@ export default class IndentBlockCommand extends Command {
 
 		const block = first( model.document.selection.getTopMostBlocks() );
 
-		// If selection is not in a list item, the command is disabled.
 		if ( !block || !model.schema.checkAttribute( block, 'blockIndent' ) ) {
 			this.isEnabled = false;
 

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

@@ -58,7 +58,7 @@ describe( 'IndentBlockCommand', () => {
 		} );
 
 		describe( 'refresh()', () => {
-			it( 'should be executed for a top-most selected block', () => {
+			it( 'should not call indentBehavior.checkEnabled() for a selected block', () => {
 				setData( model, '[<parentBlock><paragraph>foo</paragraph></parentBlock>]' );
 				command.refresh();
 				sinon.assert.notCalled( indentBehavior.checkEnabled );