toolbar.js 739 B

12345678910111213141516171819202122232425262728293031
  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 Editor from '/ckeditor5/editor/editor.js';
  8. import Model from '/ckeditor5/ui/model.js';
  9. import View from '/ckeditor5/ui/view.js';
  10. import Toolbar from '/ckeditor5/ui/bindings/toolbar.js';
  11. describe( 'Toolbar', () => {
  12. let toolbar, model, editor;
  13. beforeEach( () => {
  14. editor = new Editor();
  15. model = new Model( {
  16. isActive: false
  17. } );
  18. toolbar = new Toolbar( model, new View(), editor );
  19. } );
  20. describe( 'constructor', () => {
  21. it( 'sets all the properties', () => {
  22. expect( toolbar ).to.have.property( 'editor', editor );
  23. } );
  24. } );
  25. } );