Skip to content
This repository has been archived by the owner on Jun 26, 2020. It is now read-only.

Commit

Permalink
Merge branch 't/ckeditor5-ui/281'
Browse files Browse the repository at this point in the history
Tests: The clickOutsideHandler helper should use mousedown instead of mouseup event (see ckeditor/ckeditor5-ui#281).
  • Loading branch information
oskarwrobel committed Aug 7, 2017
2 parents c8ff69c + bcf6895 commit 0eddc64
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/imagetextalternative.js
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ describe( 'ImageTextAlternative', () => {
setData( doc, '[<image src=""></image>]' );
button.fire( 'execute' );

global.document.body.dispatchEvent( new Event( 'mouseup', { bubbles: true } ) );
global.document.body.dispatchEvent( new Event( 'mousedown', { bubbles: true } ) );
sinon.assert.called( hideSpy );
sinon.assert.notCalled( focusSpy );
} );
Expand All @@ -224,7 +224,7 @@ describe( 'ImageTextAlternative', () => {
setData( doc, '[<image src=""></image>]' );
button.fire( 'execute' );

form.element.dispatchEvent( new Event( 'mouseup', { bubbles: true } ) );
form.element.dispatchEvent( new Event( 'mousedown', { bubbles: true } ) );
sinon.assert.notCalled( spy );
} );
} );
Expand Down

0 comments on commit 0eddc64

Please sign in to comment.