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

Commit

Permalink
Tests: Updated test due to selection restoring algorithm change in undo.
Browse files Browse the repository at this point in the history
  • Loading branch information
scofalik committed Jun 23, 2017
1 parent fb51301 commit 5d0f6a4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/deletecommand-integration.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,9 @@ describe( 'DeleteCommand integration', () => {

editor.execute( 'undo' );

assertOutput( '<p>123456</p><p>[]78</p>' );
// Selection restoing in undo is not 100% correct so slight miss-settings are expected as long as
// the selection makes any sense and is near the correct position.
assertOutput( '<p>123456</p><p>78[]</p>' );
} );

it( 'merges elements (and group changes in batches) and rollbacks - non-collapsed selection', () => {
Expand Down

0 comments on commit 5d0f6a4

Please sign in to comment.