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

Tests: Moved a test that verifies the automatic toolbar items grouping to the DecoupledEditorUIView tests.

Aleksander Nowodzinski 6 лет назад
Родитель
Сommit
6dad1b6b1a

+ 0 - 4
packages/ckeditor5-editor-decoupled/tests/decouplededitorui.js

@@ -137,10 +137,6 @@ describe( 'DecoupledEditorUI', () => {
 		} );
 		} );
 
 
 		describe( 'view.toolbar', () => {
 		describe( 'view.toolbar', () => {
-			it( 'has automatic items grouping enabled', () => {
-				expect( view.toolbar.shouldGroupWhenFull ).to.be.true;
-			} );
-
 			describe( '#items', () => {
 			describe( '#items', () => {
 				it( 'are filled with the config.toolbar (specified as an Array)', () => {
 				it( 'are filled with the config.toolbar (specified as an Array)', () => {
 					return VirtualDecoupledTestEditor
 					return VirtualDecoupledTestEditor

+ 4 - 0
packages/ckeditor5-editor-decoupled/tests/decouplededitoruiview.js

@@ -45,6 +45,10 @@ describe( 'DecoupledEditorUIView', () => {
 			it( 'is not rendered', () => {
 			it( 'is not rendered', () => {
 				expect( view.toolbar.isRendered ).to.be.false;
 				expect( view.toolbar.isRendered ).to.be.false;
 			} );
 			} );
+
+			it( 'has automatic items grouping enabled', () => {
+				expect( view.toolbar.options.shouldGroupWhenFull ).to.be.true;
+			} );
 		} );
 		} );
 
 
 		describe( '#editable', () => {
 		describe( '#editable', () => {