Parcourir la source

Fixing after changes introduced in t/ckeditor5-engine/1236

Szymon Cofalik il y a 7 ans
Parent
commit
327900c530
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 2 2
      packages/ckeditor5-editor-inline/tests/inlineeditor.js

+ 2 - 2
packages/ckeditor5-editor-inline/tests/inlineeditor.js

@@ -246,9 +246,9 @@ describe( 'InlineEditor', () => {
 					schema.extend( 'heading', { allowIn: '$root' } );
 					schema.extend( '$text', { allowIn: 'heading' } );
 
-					editor.conversion.for( 'toData' ).add( downcastElementToElement( { model: 'heading', view: 'heading' } ) );
 					editor.conversion.for( 'upcast' ).add( upcastElementToElement( { model: 'heading', view: 'heading' } ) );
-					editor.conversion.for( 'toEditing' ).add( downcastElementToElement( {
+					editor.conversion.for( 'dataDowncast' ).add( downcastElementToElement( { model: 'heading', view: 'heading' } ) );
+					editor.conversion.for( 'editingDowncast' ).add( downcastElementToElement( {
 						model: 'heading',
 						view: 'heading-editing-representation'
 					} ) );