Selaa lähdekoodia

Tests: Updated test due to selection restoring algorithm change in undo.

Szymon Cofalik 8 vuotta sitten
vanhempi
commit
09c17d6079
1 muutettua tiedostoa jossa 3 lisäystä ja 1 poistoa
  1. 3 1
      packages/ckeditor5-typing/tests/deletecommand-integration.js

+ 3 - 1
packages/ckeditor5-typing/tests/deletecommand-integration.js

@@ -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', () => {