|
|
@@ -7,9 +7,14 @@ import BalloonEditorUIView from '../src/ballooneditoruiview';
|
|
|
import InlineEditableUIView from '@ckeditor/ckeditor5-ui/src/editableui/inline/inlineeditableuiview';
|
|
|
import Locale from '@ckeditor/ckeditor5-utils/src/locale';
|
|
|
|
|
|
+import testUtils from '@ckeditor/ckeditor5-core/tests/_utils/utils';
|
|
|
+import log from '@ckeditor/ckeditor5-utils/src/log';
|
|
|
+
|
|
|
describe( 'BalloonEditorUIView', () => {
|
|
|
let locale, view;
|
|
|
|
|
|
+ testUtils.createSinonSandbox();
|
|
|
+
|
|
|
beforeEach( () => {
|
|
|
locale = new Locale( 'en' );
|
|
|
view = new BalloonEditorUIView( locale );
|
|
|
@@ -43,6 +48,8 @@ describe( 'BalloonEditorUIView', () => {
|
|
|
|
|
|
describe( 'editableElement', () => {
|
|
|
it( 'returns editable\'s view element', () => {
|
|
|
+ testUtils.sinon.stub( log, 'warn' ).callsFake( () => {} );
|
|
|
+
|
|
|
view.render();
|
|
|
expect( view.editableElement.getAttribute( 'contentEditable' ) ).to.equal( 'true' );
|
|
|
view.destroy();
|