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

Commit

Permalink
Merge pull request #229 from ckeditor/i/6154
Browse files Browse the repository at this point in the history
Tests: Align test code to the latest changes in selection post-fixer. See ckeditor/ckeditor5#6154.
  • Loading branch information
jodator authored Feb 3, 2020
2 parents a11a146 + 17c7477 commit ec22240
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/tableediting.js
Original file line number Diff line number Diff line change
Expand Up @@ -259,15 +259,15 @@ describe( 'TableEditing', () => {

describe( 'on TAB', () => {
it( 'should do nothing if selection is not in a table', () => {
setModelData( model, '[]' + modelTable( [
setModelData( model, '<paragraph>[]</paragraph>' + modelTable( [
[ '11', '12' ]
] ) );

editor.editing.view.document.fire( 'keydown', domEvtDataStub );

sinon.assert.notCalled( domEvtDataStub.preventDefault );
sinon.assert.notCalled( domEvtDataStub.stopPropagation );
assertEqualMarkup( getModelData( model ), '[]' + modelTable( [
assertEqualMarkup( getModelData( model ), '<paragraph>[]</paragraph>' + modelTable( [
[ '11', '12' ]
] ) );
} );
Expand Down Expand Up @@ -456,7 +456,7 @@ describe( 'TableEditing', () => {
} );

it( 'should do nothing if selection is not in a table', () => {
setModelData( model, '[]' + modelTable( [
setModelData( model, '<paragraph>[]</paragraph>' + modelTable( [
[ '11', '12' ]
] ) );

Expand All @@ -467,7 +467,7 @@ describe( 'TableEditing', () => {

sinon.assert.notCalled( domEvtDataStub.preventDefault );
sinon.assert.notCalled( domEvtDataStub.stopPropagation );
assertEqualMarkup( getModelData( model ), '[]' + modelTable( [
assertEqualMarkup( getModelData( model ), '<paragraph>[]</paragraph>' + modelTable( [
[ '11', '12' ]
] ) );
} );
Expand Down

0 comments on commit ec22240

Please sign in to comment.