8
0
Просмотр исходного кода

Removed unnecessary batch from additionalData.

Oskar Wróbel 8 лет назад
Родитель
Сommit
4e9ceac333
1 измененных файлов с 12 добавлено и 12 удалено
  1. 12 12
      packages/ckeditor5-engine/tests/conversion/advanced-converters.js

+ 12 - 12
packages/ckeditor5-engine/tests/conversion/advanced-converters.js

@@ -208,8 +208,8 @@ describe( 'advanced-converters', () => {
 
 			const viewFigureConverter = function( evt, data, consumable, conversionApi ) {
 				if ( consumable.consume( data.input, { name: true } ) ) {
-					const modelImage = conversionApi.convertItem( data.input.getChild( 0 ), consumable, batch );
-					const modelCaption = conversionApi.convertItem( data.input.getChild( 1 ), consumable, batch );
+					const modelImage = conversionApi.convertItem( data.input.getChild( 0 ), consumable );
+					const modelCaption = conversionApi.convertItem( data.input.getChild( 1 ), consumable );
 
 					modelImage.appendChildren( modelCaption );
 
@@ -232,7 +232,7 @@ describe( 'advanced-converters', () => {
 			const viewFigcaptionConverter = function( evt, data, consumable, conversionApi ) {
 				if ( consumable.consume( data.input, { name: true } ) ) {
 					const modelCaption = new ModelElement( 'caption' );
-					const children = conversionApi.convertChildren( data.input, consumable, batch );
+					const children = conversionApi.convertChildren( data.input, consumable );
 
 					modelCaption.appendChildren( children );
 
@@ -372,7 +372,7 @@ describe( 'advanced-converters', () => {
 			viewDispatcher.on( 'element:a', ( evt, data, consumable, conversionApi ) => {
 				if ( consumable.consume( data.input, { name: true, attribute: 'href' } ) ) {
 					if ( !data.output ) {
-						data.output = conversionApi.convertChildren( data.input, consumable, batch );
+						data.output = conversionApi.convertChildren( data.input, consumable );
 					}
 
 					for ( const child of data.output ) {
@@ -384,7 +384,7 @@ describe( 'advanced-converters', () => {
 			viewDispatcher.on( 'element:a', ( evt, data, consumable, conversionApi ) => {
 				if ( consumable.consume( data.input, { attribute: 'title' } ) ) {
 					if ( !data.output ) {
-						data.output = conversionApi.convertChildren( data.input, consumable, batch );
+						data.output = conversionApi.convertChildren( data.input, consumable );
 					}
 
 					for ( const child of data.output ) {
@@ -469,7 +469,7 @@ describe( 'advanced-converters', () => {
 						}
 					}
 
-					const children = conversionApi.convertChildren( data.input, consumable, batch );
+					const children = conversionApi.convertChildren( data.input, consumable );
 					data.output.appendChildren( children );
 				}
 			} );
@@ -603,7 +603,7 @@ describe( 'advanced-converters', () => {
 		viewDispatcher.on( 'element:a', ( evt, data, consumable, conversionApi ) => {
 			if ( consumable.consume( data.input, { name: true, attribute: 'href' } ) ) {
 				if ( !data.output ) {
-					data.output = conversionApi.convertChildren( data.input, consumable, batch );
+					data.output = conversionApi.convertChildren( data.input, consumable );
 				}
 
 				for ( const child of data.output ) {
@@ -616,7 +616,7 @@ describe( 'advanced-converters', () => {
 			if ( consumable.consume( data.input, { name: true } ) ) {
 				data.output = new ModelElement( 'paragraph' );
 
-				const children = conversionApi.convertChildren( data.input, consumable, batch );
+				const children = conversionApi.convertChildren( data.input, consumable );
 
 				for ( let i = 1; i < children.childCount; i++ ) {
 					const child = children.getChild( i );
@@ -633,13 +633,13 @@ describe( 'advanced-converters', () => {
 
 		viewDispatcher.on( 'element:table', ( evt, data, consumable, conversionApi ) => {
 			if ( consumable.consume( data.input, { name: true } ) ) {
-				data.output = conversionApi.convertChildren( data.input, consumable, batch );
+				data.output = conversionApi.convertChildren( data.input, consumable );
 			}
 		} );
 
 		viewDispatcher.on( 'element:td', ( evt, data, consumable, conversionApi ) => {
 			if ( consumable.consume( data.input, { name: true } ) ) {
-				data.output = conversionApi.convertChildren( data.input, consumable, batch );
+				data.output = conversionApi.convertChildren( data.input, consumable );
 			}
 		} );
 
@@ -681,7 +681,7 @@ describe( 'advanced-converters', () => {
 						}
 					}
 
-					data.output.appendChildren( conversionApi.convertChildren( data.input, consumable, batch ) );
+					data.output.appendChildren( conversionApi.convertChildren( data.input, consumable ) );
 				}
 			}, { priority: 'lowest' } );
 
@@ -705,7 +705,7 @@ describe( 'advanced-converters', () => {
 			viewDispatcher.on( 'element:strong', ( evt, data, consumable, conversionApi ) => {
 				if ( consumable.consume( data.input, { name: true } ) ) {
 					if ( !data.output ) {
-						data.output = conversionApi.convertChildren( data.input, consumable, batch );
+						data.output = conversionApi.convertChildren( data.input, consumable );
 					}
 
 					for ( const child of data.output ) {