Bladeren bron

Merge pull request #85 from ckeditor/t/ckeditor5-engine/1074

Internal: Aligned selection method names to the changes in the engine.
Piotr Jasiun 8 jaren geleden
bovenliggende
commit
6c6f54a6fc
1 gewijzigde bestanden met toevoegingen van 2 en 2 verwijderingen
  1. 2 2
      packages/ckeditor5-heading/tests/integration.js

+ 2 - 2
packages/ckeditor5-heading/tests/integration.js

@@ -42,7 +42,7 @@ describe( 'Heading integration', () => {
 	describe( 'with the enter key', () => {
 		it( 'should make the "enter" command insert a default heading block if the selection ended at the end of a heading block', () => {
 			editor.setData( '<h2>foobar</h2>' );
-			doc.selection.collapse( doc.getRoot().getChild( 0 ), 'end' );
+			doc.selection.setCollapsedAt( doc.getRoot().getChild( 0 ), 'end' );
 
 			editor.execute( 'enter' );
 
@@ -52,7 +52,7 @@ describe( 'Heading integration', () => {
 		it( 'should not alter the "enter" command if selection not ended at the end of a heading block', () => {
 			// This test is to fill code coverage.
 			editor.setData( '<h2>foobar</h2>' );
-			doc.selection.collapse( doc.getRoot().getChild( 0 ), 3 );
+			doc.selection.setCollapsedAt( doc.getRoot().getChild( 0 ), 3 );
 
 			editor.execute( 'enter' );