8
0
فهرست منبع

Tests: Add scenario to test if toolbar will group items

panr 6 سال پیش
والد
کامیت
0559d83d6d
1فایلهای تغییر یافته به همراه5 افزوده شده و 0 حذف شده
  1. 5 0
      packages/ckeditor5-ui/tests/toolbar/toolbarview.js

+ 5 - 0
packages/ckeditor5-ui/tests/toolbar/toolbarview.js

@@ -70,6 +70,11 @@ describe( 'ToolbarView', () => {
 
 
 				toolbar.destroy();
 				toolbar.destroy();
 			} );
 			} );
+
+			it( 'toolbar should group items by default', () => {
+				const toolbar = new ToolbarView( locale, { shouldGroupWhenFull: true } );
+				expect( toolbar.options.shouldGroupWhenFull ).to.be.true;
+			} );
 		} );
 		} );
 
 
 		it( 'should create view#items collection', () => {
 		it( 'should create view#items collection', () => {