瀏覽代碼

Fix manual test.

Maciej 5 年之前
父節點
當前提交
73c2fb8e7a
共有 1 個文件被更改,包括 4 次插入5 次删除
  1. 4 5
      packages/ckeditor5-engine/tests/manual/slotconversion.js

+ 4 - 5
packages/ckeditor5-engine/tests/manual/slotconversion.js

@@ -202,11 +202,10 @@ function Box( editor ) {
 	editor.conversion.for( 'downcast' ).elementToElement( {
 		model: 'box',
 		view: downcastBox,
-		triggerBy: [
-			'attribute:meta:box',
-			'insert:boxField',
-			'remove:boxField'
-		]
+		triggerBy: {
+			attributes: [ 'meta' ],
+			children: [ 'boxField' ]
+		}
 	} );
 
 	addBoxMetaButton( editor, 'boxTitle', 'Box title', () => ( {