瀏覽代碼

Tests: Enabled unit test that was blocked by a bug that has been recently resolved.

Marek Lewandowski 5 年之前
父節點
當前提交
077befe461
共有 1 個文件被更改,包括 22 次插入24 次删除
  1. 22 24
      packages/ckeditor5-table/tests/commands/removerowcommand.js

+ 22 - 24
packages/ckeditor5-table/tests/commands/removerowcommand.js

@@ -151,30 +151,28 @@ describe( 'RemoveRowCommand', () => {
 				] ) );
 			} );
 
-			// This test is blocked by (#6370).
-			//
-			// it( 'should properly remove tailing rows', () => {
-			// 	setData( model, modelTable( [
-			// 		[ '00', '01' ],
-			// 		[ '10', '11' ],
-			// 		[ '20', '21' ],
-			// 		[ '30', '31' ]
-			// 	] ) );
-
-			// 	const tableSelection = editor.plugins.get( TableSelection );
-			// 	const modelRoot = model.document.getRoot();
-			// tableSelection._setCellSelection(
-			// 	modelRoot.getNodeByPath( [ 0, 2, 0 ] ),
-			// 	modelRoot.getNodeByPath( [ 0, 36, 0 ] )
-			// );
-
-			// 	command.execute();
-
-			// 	assertEqualMarkup( getData( model ), modelTable( [
-			// 		[ '00', '01' ],
-			// 		[ '10', '11[]' ]
-			// 	] ) );
-			// } );
+			it( 'should properly remove tailing rows', () => {
+				setData( model, modelTable( [
+					[ '00', '01' ],
+					[ '10', '11' ],
+					[ '20', '21' ],
+					[ '30', '31' ]
+				] ) );
+
+				const tableSelection = editor.plugins.get( TableSelection );
+				const modelRoot = model.document.getRoot();
+				tableSelection._setCellSelection(
+					modelRoot.getNodeByPath( [ 0, 2, 0 ] ),
+					modelRoot.getNodeByPath( [ 0, 3, 0 ] )
+				);
+
+				command.execute();
+
+				assertEqualMarkup( getData( model ), modelTable( [
+					[ '00', '01' ],
+					[ '[]10', '11' ]
+				] ) );
+			} );
 
 			it( 'should properly remove beginning rows', () => {
 				setData( model, modelTable( [