Przeglądaj źródła

Merge branch 'master' into t/ckeditor5/447

Aleksander Nowodzinski 8 lat temu
rodzic
commit
c45fd8983b
1 zmienionych plików z 2 dodań i 2 usunięć
  1. 2 2
      packages/ckeditor5-link/tests/link.js

+ 2 - 2
packages/ckeditor5-link/tests/link.js

@@ -582,7 +582,7 @@ describe( 'Link', () => {
 			const spy = testUtils.sinon.spy( linkFeature, '_hidePanel' );
 
 			linkFeature._showPanel( true );
-			document.body.dispatchEvent( new Event( 'mouseup', { bubbles: true } ) );
+			document.body.dispatchEvent( new Event( 'mousedown', { bubbles: true } ) );
 
 			sinon.assert.calledWithExactly( spy );
 		} );
@@ -591,7 +591,7 @@ describe( 'Link', () => {
 			const spy = testUtils.sinon.spy( linkFeature, '_hidePanel' );
 
 			linkFeature._showPanel( true );
-			balloon.view.element.dispatchEvent( new Event( 'mouseup', { bubbles: true } ) );
+			balloon.view.element.dispatchEvent( new Event( 'mousedown', { bubbles: true } ) );
 
 			sinon.assert.notCalled( spy );
 		} );