Browse Source

Align code to the latest changes in converters API.

Maciej Gołaszewski 7 years ago
parent
commit
ffd872642d

+ 3 - 3
packages/ckeditor5-table/tests/converters/downcast.js

@@ -148,8 +148,8 @@ describe( 'downcast converters', () => {
 		} );
 
 		it( 'should be possible to overwrite', () => {
-			editor.conversion.elementToElement( { model: 'tableRow', view: 'tr', priority: 'high' } );
-			editor.conversion.elementToElement( { model: 'tableCell', view: 'td', priority: 'high' } );
+			editor.conversion.elementToElement( { model: 'tableRow', view: 'tr', converterPriority: 'high' } );
+			editor.conversion.elementToElement( { model: 'tableCell', view: 'td', converterPriority: 'high' } );
 			editor.conversion.for( 'downcast' ).add( dispatcher => {
 				dispatcher.on( 'insert:table', ( evt, data, conversionApi ) => {
 					conversionApi.consumable.consume( data.item, 'insert' );
@@ -922,7 +922,7 @@ describe( 'downcast converters', () => {
 		} );
 
 		it( 'should be possible to overwrite', () => {
-			editor.conversion.attributeToAttribute( { model: 'headingColumns', view: 'headingColumns', priority: 'high' } );
+			editor.conversion.attributeToAttribute( { model: 'headingColumns', view: 'headingColumns', converterPriority: 'high' } );
 			setModelData( model, modelTable( [ [ '11' ] ] ) );
 
 			const table = root.getChild( 0 );

+ 1 - 1
packages/ckeditor5-table/tests/converters/upcasttable.js

@@ -229,7 +229,7 @@ describe( 'upcastTable()', () => {
 			isObject: true
 		} );
 
-		editor.conversion.elementToElement( { model: 'fooTable', view: 'table', priority: 'high' } );
+		editor.conversion.elementToElement( { model: 'fooTable', view: 'table', converterPriority: 'high' } );
 
 		editor.setData(
 			'<table>' +