浏览代码

Fix tests for selection at the beginning and at the end of restricted text

panr 6 年之前
父节点
当前提交
b02b9b981a
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      packages/ckeditor5-restricted-editing/tests/restrictededitingexceptioncommand.js

+ 2 - 2
packages/ckeditor5-restricted-editing/tests/restrictededitingexceptioncommand.js

@@ -145,7 +145,7 @@ describe( 'RestrictedEditingExceptionCommand', () => {
 				command.execute();
 
 				expect( model.document.selection.hasAttribute( 'restrictedEditingException' ) ).to.be.false;
-				expect( getData( model ) ).to.equal( '<p>abc<$text restrictedEditingException="true">[]foobar</$text>baz</p>' );
+				expect( getData( model ) ).to.equal( '<p>abc[]<$text restrictedEditingException="true">foobar</$text>baz</p>' );
 			} );
 
 			it( 'should not remove exception when selection is at the end of restricted text', () => {
@@ -154,7 +154,7 @@ describe( 'RestrictedEditingExceptionCommand', () => {
 				command.execute();
 
 				expect( model.document.selection.hasAttribute( 'restrictedEditingException' ) ).to.be.false;
-				expect( getData( model ) ).to.equal( '<p>abc<$text restrictedEditingException="true">foobar[]</$text>baz</p>' );
+				expect( getData( model ) ).to.equal( '<p>abc<$text restrictedEditingException="true">foobar</$text>[]baz</p>' );
 			} );
 
 			it( 'should set selection attribute if selection does not have it (selection at the end)', () => {