linkballoonpanelview.js 764 B

123456789101112131415161718192021222324252627
  1. /**
  2. * @license Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved.
  3. * For licensing, see LICENSE.md.
  4. */
  5. /* bender-tags: ui, link */
  6. import LinkBalloonPanelView from '/ckeditor5/link/ui/linkballoonpanelview.js';
  7. import BalloonPanelView from '/ckeditor5/ui/balloonpanel/balloonpanelview.js';
  8. describe( 'LinkBalloonPanelView', () => {
  9. let view;
  10. beforeEach( () => {
  11. view = new LinkBalloonPanelView();
  12. } );
  13. describe( 'constructor', () => {
  14. it( 'should extend BalloonPanelView class', () => {
  15. expect( view ).to.be.instanceof( BalloonPanelView );
  16. } );
  17. it( 'should extend BalloonPanel element by additional class', () => {
  18. expect( view.element.classList.contains( 'ck-link-balloon-panel' ) ).to.be.true;
  19. } );
  20. } );
  21. } );