浏览代码

Tests: Aligned tests to changes in ckeditor/ckeditor5-engine#984.

Piotrek Koszuliński 8 年之前
父节点
当前提交
fd4022d255
共有 2 个文件被更改,包括 8 次插入8 次删除
  1. 2 2
      packages/ckeditor5-list/tests/indentcommand.js
  2. 6 6
      packages/ckeditor5-list/tests/listcommand.js

+ 2 - 2
packages/ckeditor5-list/tests/indentcommand.js

@@ -165,7 +165,7 @@ describe( 'IndentCommand', () => {
 				doc.enqueueChanges( () => {
 					doc.selection.setRanges( [ new Range(
 						new Position( root.getChild( 1 ), [ 0 ] ),
-						new Position( root.getChild( 3 ), [ 0 ] )
+						new Position( root.getChild( 3 ), [ 1 ] )
 					) ] );
 				} );
 
@@ -325,7 +325,7 @@ describe( 'IndentCommand', () => {
 				doc.enqueueChanges( () => {
 					doc.selection.setRanges( [ new Range(
 						new Position( root.getChild( 1 ), [ 0 ] ),
-						new Position( root.getChild( 3 ), [ 0 ] )
+						new Position( root.getChild( 3 ), [ 1 ] )
 					) ] );
 				} );
 

+ 6 - 6
packages/ckeditor5-list/tests/listcommand.js

@@ -278,7 +278,7 @@ describe( 'ListCommand', () => {
 					doc.enqueueChanges( () => {
 						doc.selection.setRanges( [ new Range(
 							Position.createAt( root.getChild( 2 ) ),
-							Position.createAt( root.getChild( 3 ) )
+							Position.createAt( root.getChild( 3 ), 'end' )
 						) ] );
 					} );
 
@@ -288,7 +288,7 @@ describe( 'ListCommand', () => {
 						'<listItem indent="0" type="bulleted">---</listItem>' +
 						'<listItem indent="0" type="bulleted">---</listItem>' +
 						'<listItem indent="0" type="bulleted">[---</listItem>' +
-						'<listItem indent="0" type="bulleted">]---</listItem>' +
+						'<listItem indent="0" type="bulleted">---]</listItem>' +
 						'<listItem indent="0" type="numbered">---</listItem>' +
 						'<listItem indent="0" type="numbered">---</listItem>' +
 						'<listItem indent="1" type="bulleted">---</listItem>' +
@@ -303,7 +303,7 @@ describe( 'ListCommand', () => {
 					doc.enqueueChanges( () => {
 						doc.selection.setRanges( [ new Range(
 							Position.createAt( root.getChild( 1 ) ),
-							Position.createAt( root.getChild( 4 ) )
+							Position.createAt( root.getChild( 4 ), 'end' )
 						) ] );
 					} );
 
@@ -315,7 +315,7 @@ describe( 'ListCommand', () => {
 						'<paragraph indent="0" type="bulleted">[---</paragraph>' + // Attributes will be removed by post fixer.
 						'<paragraph>---</paragraph>' +
 						'<paragraph>---</paragraph>' +
-						'<paragraph indent="0" type="numbered">]---</paragraph>' + // Attributes will be removed by post fixer.
+						'<paragraph indent="0" type="numbered">---]</paragraph>' + // Attributes will be removed by post fixer.
 						'<listItem indent="0" type="numbered">---</listItem>' +
 						'<listItem indent="1" type="bulleted">---</listItem>' +
 						'<listItem indent="2" type="bulleted">---</listItem>';
@@ -353,7 +353,7 @@ describe( 'ListCommand', () => {
 					doc.enqueueChanges( () => {
 						doc.selection.setRanges( [ new Range(
 							Position.createAt( root.getChild( 1 ) ),
-							Position.createAt( root.getChild( 5 ) )
+							Position.createAt( root.getChild( 5 ), 'end' )
 						) ] );
 					} );
 
@@ -366,7 +366,7 @@ describe( 'ListCommand', () => {
 						'<paragraph>---</paragraph>' +
 						'<paragraph>---</paragraph>' +
 						'<paragraph indent="0" type="numbered">---</paragraph>' + // Attributes will be removed by post fixer.
-						'<paragraph indent="0" type="numbered">]---</paragraph>' + // Attributes will be removed by post fixer.
+						'<paragraph indent="0" type="numbered">---]</paragraph>' + // Attributes will be removed by post fixer.
 						'<listItem indent="0" type="bulleted">---</listItem>' +
 						'<listItem indent="1" type="bulleted">---</listItem>';