Sfoglia il codice sorgente

Tests: Fix deletecontent tests.

Maciej Gołaszewski 7 anni fa
parent
commit
81ebbcc3d1

+ 1 - 1
packages/ckeditor5-engine/tests/model/utils/deletecontent.js

@@ -669,7 +669,7 @@ describe( 'DataController utils', () => {
 					new Position( doc.getRoot( 'bodyRoot' ), [ 3 ] )
 				);
 
-				deleteContent( model, range );
+				deleteContent( model, new Selection( range ) );
 
 				expect( getData( model, { rootName: 'bodyRoot', withoutSelection: true } ) )
 					.to.equal( '<paragraph>x</paragraph><paragraph></paragraph><paragraph>z</paragraph>' );