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

Commit

Permalink
Fix "should move rowspaned cells to row below removing it's row" test…
Browse files Browse the repository at this point in the history
… cases.
  • Loading branch information
jodator committed Apr 7, 2020
1 parent 6e35053 commit fe3c1df
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions tests/commands/removerowcommand.js
Original file line number Diff line number Diff line change
Expand Up @@ -464,15 +464,15 @@ describe( 'RemoveRowCommand', () => {
setData( model, modelTable( [
[ { rowspan: 3, contents: '[]00' }, { rowspan: 2, contents: '01' }, '02' ],
[ '12' ],
[ '22' ],
[ '21', '22' ],
[ '30', '31', '32' ]
] ) );

command.execute();

assertEqualMarkup( getData( model ), modelTable( [
[ { rowspan: 2, contents: '[]00' }, '01', '12' ],
[ '22' ],
[ '21', '22' ],
[ '30', '31', '32' ]
] ) );
} );
Expand Down
4 changes: 2 additions & 2 deletions tests/tableutils.js
Original file line number Diff line number Diff line change
Expand Up @@ -814,15 +814,15 @@ describe( 'TableUtils', () => {
setData( model, modelTable( [
[ { rowspan: 3, contents: '00' }, { rowspan: 2, contents: '01' }, '02' ],
[ '12' ],
[ '22' ],
[ '21', '22' ],
[ '30', '31', '32' ]
] ) );

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

assertEqualMarkup( getData( model, { withoutSelection: true } ), modelTable( [
[ { rowspan: 2, contents: '00' }, '01', '12' ],
[ '22' ],
[ '21', '22' ],
[ '30', '31', '32' ]
] ) );
} );
Expand Down

0 comments on commit fe3c1df

Please sign in to comment.