Explorar el Código

Tests: Add scenario to test if toolbar will group items

panr hace 6 años
padre
commit
0559d83d6d
Se han modificado 1 ficheros con 5 adiciones y 0 borrados
  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();
 			} );
+
+			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', () => {