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

Commit

Permalink
Tests: Aligned Image tests to the latest ContextualToolbar API (see c…
Browse files Browse the repository at this point in the history
…keditor/ckeditor5-ui#263).
  • Loading branch information
oleq committed Jul 12, 2017
1 parent 7e0de5e commit d4e52de
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/image.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,15 +68,15 @@ describe( 'Image', () => {
// When image is selected along with text.
setModelData( newEditor.document, '<paragraph>fo[o</paragraph><image alt="alt text" src="foo.png"></image>]' );

contextualToolbar._showPanel();
contextualToolbar.show();

// ContextualToolbar should be visible.
expect( balloon.visibleView ).to.equal( contextualToolbar.toolbarView );

// When only image is selected.
setModelData( newEditor.document, '<paragraph>foo</paragraph>[<image alt="alt text" src="foo.png"></image>]' );

contextualToolbar._showPanel();
contextualToolbar.show();

// ContextualToolbar should not be visible.
expect( balloon.visibleView ).to.be.null;
Expand Down

0 comments on commit d4e52de

Please sign in to comment.