浏览代码

Tests: Updated the theme manual test to the latest list dropdown API.

Aleksander Nowodzinski 7 年之前
父节点
当前提交
96aed2f23f
共有 1 个文件被更改,包括 37 次插入25 次删除
  1. 37 25
      packages/ckeditor5-theme-lark/tests/manual/theme.js

+ 37 - 25
packages/ckeditor5-theme-lark/tests/manual/theme.js

@@ -230,36 +230,48 @@ function renderDropdown() {
 	const collection = new Collection( { idProperty: 'label' } );
 
 	[ 'Arial', 'Tahoma', 'Georgia' ].forEach( font => {
-		collection.add( new Model( {
-			label: `${ font } (style attr)`,
-			style: `font-family: ${ font }`,
-			withText: true
-		} ) );
+		collection.add( {
+			type: 'button',
+			model: new Model( {
+				label: `${ font } (style attr)`,
+				style: `font-family: ${ font }`,
+				withText: true
+			} )
+		} );
 	} );
 
-	collection.add( new Model( {
-		isSeparator: true
-	} ) );
+	collection.add( {
+		type: 'separator'
+	} );
 
-	collection.add( new Model( {
-		label: 'Bold',
-		withText: true,
-		icon: boldIcon
-	} ) );
+	collection.add( {
+		type: 'button',
+		model: new Model( {
+			label: 'Bold',
+			withText: true,
+			icon: boldIcon
+		} )
+	} );
 
-	collection.add( new Model( {
-		label: 'This item is on',
-		withText: true,
-		icon: boldIcon,
-		isOn: true
-	} ) );
+	collection.add( {
+		type: 'button',
+		model: new Model( {
+			label: 'This item is on',
+			withText: true,
+			icon: boldIcon,
+			isOn: true
+		} )
+	} );
 
-	collection.add( new Model( {
-		label: 'Disabled',
-		withText: true,
-		icon: boldIcon,
-		isEnabled: false
-	} ) );
+	collection.add( {
+		type: 'button',
+		model: new Model( {
+			label: 'Disabled',
+			withText: true,
+			icon: boldIcon,
+			isEnabled: false
+		} )
+	} );
 
 	ui.listDropdown.add( toolbar( [
 		listDropdown( {