stickytoolbar.js 747 B

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