ソースを参照

Merge pull request #229 from ckeditor/i/6154

Tests: Align test code to the latest changes in selection post-fixer. See ckeditor/ckeditor5#6154.
Maciej 5 年 前
コミット
a5167f1bd7
1 ファイル変更4 行追加4 行削除
  1. 4 4
      packages/ckeditor5-table/tests/tableediting.js

+ 4 - 4
packages/ckeditor5-table/tests/tableediting.js

@@ -259,7 +259,7 @@ 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' ]
 				] ) );
 
@@ -267,7 +267,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' ]
 				] ) );
 			} );
@@ -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' ]
 				] ) );
 
@@ -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' ]
 				] ) );
 			} );