Skip to content
This repository has been archived by the owner on Jun 26, 2020. It is now read-only.

Commit

Permalink
Tests: Aligned tests to changes in ckeditor/ckeditor5-engine#984.
Browse files Browse the repository at this point in the history
  • Loading branch information
Reinmar committed Jun 27, 2017
1 parent 12b77ae commit 8564ff6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions tests/indentcommand.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 ] )
) ] );
} );

Expand Down Expand Up @@ -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 ] )
) ] );
} );

Expand Down
12 changes: 6 additions & 6 deletions tests/listcommand.js
Original file line number Diff line number Diff line change
Expand Up @@ -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' )
) ] );
} );

Expand All @@ -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>' +
Expand All @@ -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' )
) ] );
} );

Expand All @@ -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>';
Expand Down Expand Up @@ -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' )
) ] );
} );

Expand All @@ -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>';

Expand Down

0 comments on commit 8564ff6

Please sign in to comment.