浏览代码

Align code to the changes in conversion API.

Maciej Gołaszewski 7 年之前
父节点
当前提交
7415c1410d
共有 1 个文件被更改,包括 4 次插入7 次删除
  1. 4 7
      packages/ckeditor5-editor-balloon/tests/ballooneditor.js

+ 4 - 7
packages/ckeditor5-editor-balloon/tests/ballooneditor.js

@@ -10,9 +10,6 @@ import BalloonEditorUIView from '../src/ballooneditoruiview';
 
 import HtmlDataProcessor from '@ckeditor/ckeditor5-engine/src/dataprocessor/htmldataprocessor';
 
-import { downcastElementToElement } from '@ckeditor/ckeditor5-engine/src/conversion/downcast-converters';
-import { upcastElementToElement } from '@ckeditor/ckeditor5-engine/src/conversion/upcast-converters';
-
 import BalloonEditor from '../src/ballooneditor';
 import Plugin from '@ckeditor/ckeditor5-core/src/plugin';
 import Paragraph from '@ckeditor/ckeditor5-paragraph/src/paragraph';
@@ -289,12 +286,12 @@ describe( 'BalloonEditor', () => {
 					schema.extend( 'heading', { allowIn: '$root' } );
 					schema.extend( '$text', { allowIn: 'heading' } );
 
-					editor.conversion.for( 'upcast' ).add( upcastElementToElement( { model: 'heading', view: 'heading' } ) );
-					editor.conversion.for( 'dataDowncast' ).add( downcastElementToElement( { model: 'heading', view: 'heading' } ) );
-					editor.conversion.for( 'editingDowncast' ).add( downcastElementToElement( {
+					editor.conversion.for( 'upcast' ).elementToElement( { model: 'heading', view: 'heading' } );
+					editor.conversion.for( 'dataDowncast' ).elementToElement( { model: 'heading', view: 'heading' } );
+					editor.conversion.for( 'editingDowncast' ).elementToElement( {
 						model: 'heading',
 						view: 'heading-editing-representation'
-					} ) );
+					} );
 				} );
 		} );