瀏覽代碼

Tests: Aligned Image tests to the latest ContextualToolbar API (see ckeditor/ckeditor5-ui#263).

Aleksander Nowodzinski 8 年之前
父節點
當前提交
94e0eb2539
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      packages/ckeditor5-image/tests/image.js

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

@@ -68,7 +68,7 @@ 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 );
@@ -76,7 +76,7 @@ describe( 'Image', () => {
 			// 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;