Skip to content

Commit

Permalink
Added test for #7454 issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
niegowski committed Jul 7, 2020
1 parent 60e4ca7 commit e749264
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions packages/ckeditor5-table/tests/tableutils.js
Original file line number Diff line number Diff line change
Expand Up @@ -959,6 +959,21 @@ describe( 'TableUtils', () => {
], { headingRows: 1 } ) );
} );

it( 'should change heading rows if removing a heading row (and cell below is row-spanned)', () => {
setData( model, modelTable( [
[ '00', '01' ],
[ '10', { contents: '11', rowspan: 2 } ],
[ '20' ]
], { headingRows: 1 } ) );

tableUtils.removeRows( root.getChild( 0 ), { at: 0 } );

assertEqualMarkup( getData( model, { withoutSelection: true } ), modelTable( [
[ '10', { contents: '11', rowspan: 2 } ],
[ '20' ]
] ) );
} );

it( 'should decrease rowspan of table cells from previous rows', () => {
// +----+----+----+----+----+
// | 00 | 01 | 02 | 03 | 04 |
Expand Down

0 comments on commit e749264

Please sign in to comment.