|
|
@@ -121,27 +121,6 @@ describe( 'BalloonPanelView', () => {
|
|
|
expect( view.element.childNodes.length ).to.equal( 1 );
|
|
|
} );
|
|
|
} );
|
|
|
-
|
|
|
- describe( 'event listeners', () => {
|
|
|
- it( 'prevent default on #mousedown', () => {
|
|
|
- const evt = new Event( 'mousedown', { bubbles: true } );
|
|
|
- const spy = sinon.spy( evt, 'preventDefault' );
|
|
|
-
|
|
|
- view.element.dispatchEvent( evt );
|
|
|
- sinon.assert.calledOnce( spy );
|
|
|
- } );
|
|
|
-
|
|
|
- // https://github.com/ckeditor/ckeditor5-ui/issues/243
|
|
|
- it( 'prevents default on #selectstart', () => {
|
|
|
- const event = new Event( 'selectstart', { bubbles: true } );
|
|
|
- const spy = sinon.spy( event, 'preventDefault' );
|
|
|
- const child = document.createElement( 'div' );
|
|
|
-
|
|
|
- view.element.appendChild( child );
|
|
|
- child.dispatchEvent( event );
|
|
|
- sinon.assert.calledOnce( spy );
|
|
|
- } );
|
|
|
- } );
|
|
|
} );
|
|
|
|
|
|
describe( 'show()', () => {
|