From 5d0f6a435e3777e1c75ee6f59c7c877c3e6b68f7 Mon Sep 17 00:00:00 2001 From: Szymon Cofalik Date: Fri, 23 Jun 2017 16:08:27 +0200 Subject: [PATCH] Tests: Updated test due to selection restoring algorithm change in undo. --- tests/deletecommand-integration.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/deletecommand-integration.js b/tests/deletecommand-integration.js index 3ded274..37c6917 100644 --- a/tests/deletecommand-integration.js +++ b/tests/deletecommand-integration.js @@ -92,7 +92,9 @@ describe( 'DeleteCommand integration', () => { editor.execute( 'undo' ); - assertOutput( '

123456

[]78

' ); + // 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( '

123456

78[]

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