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

Commit

Permalink
Merge 19ff56b into c8f7e57
Browse files Browse the repository at this point in the history
  • Loading branch information
Piotr Jasiun committed Sep 17, 2018
2 parents c8f7e57 + 19ff56b commit 17b5efb
Showing 1 changed file with 4 additions and 11 deletions.
15 changes: 4 additions & 11 deletions tests/listediting.js
Original file line number Diff line number Diff line change
Expand Up @@ -3309,8 +3309,7 @@ describe( 'ListEditing', () => {
'<listItem listType="bulleted" listIndent="0">X</listItem>' +
'<listItem listType="bulleted" listIndent="1">Y</listItem>',
model.schema
),
modelDoc.selection
)
);

expect( getModelData( model ) ).to.equal(
Expand All @@ -3329,10 +3328,7 @@ describe( 'ListEditing', () => {
'<listItem listType="bulleted" listIndent="2">C</listItem>'
);

editor.model.insertContent(
new ModelElement( 'listItem', { listType: 'bulleted', listIndent: '0' }, 'X' ),
modelDoc.selection
);
editor.model.insertContent( new ModelElement( 'listItem', { listType: 'bulleted', listIndent: '0' }, 'X' ) );

expect( getModelData( model ) ).to.equal(
'<listItem listIndent="0" listType="bulleted">A</listItem>' +
Expand All @@ -3349,10 +3345,7 @@ describe( 'ListEditing', () => {
'<listItem listType="bulleted" listIndent="2">C</listItem>'
);

editor.model.insertContent(
new ModelText( 'X' ),
modelDoc.selection
);
editor.model.insertContent( new ModelText( 'X' ) );

expect( getModelData( model ) ).to.equal(
'<listItem listIndent="0" listType="bulleted">A</listItem>' +
Expand Down Expand Up @@ -3494,7 +3487,7 @@ describe( 'ListEditing', () => {
setModelData( model, '<paragraph>[]</paragraph>' );

expect( () => {
editor.model.insertContent( new ModelDocumentFragment(), modelDoc.selection );
editor.model.insertContent( new ModelDocumentFragment() );
} ).not.to.throw();
} );

Expand Down

0 comments on commit 17b5efb

Please sign in to comment.