8
0

toolbar.js 606 B

12345678910111213141516171819202122232425
  1. /**
  2. * @license Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved.
  3. * For licensing, see LICENSE.md.
  4. */
  5. /* bender-tags: ui, toolbar */
  6. 'use strict';
  7. import Toolbar from '/ckeditor5/core/ui/toolbar/toolbar.js';
  8. import ControllerCollection from '/ckeditor5/core/ui/controllercollection.js';
  9. describe( 'Toolbar', () => {
  10. let toolbar;
  11. beforeEach( () => {
  12. toolbar = new Toolbar();
  13. } );
  14. describe( 'constructor', () => {
  15. it( 'creates buttons collection', () => {
  16. expect( toolbar.collections.get( 'buttons' ) ).to.be.instanceof( ControllerCollection );
  17. } );
  18. } );
  19. } );