|
|
@@ -11,9 +11,14 @@ import ToolbarView from '@ckeditor/ckeditor5-ui/src/toolbar/toolbarview';
|
|
|
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( 'ClassicEditorUIView', () => {
|
|
|
let locale, view;
|
|
|
|
|
|
+ testUtils.createSinonSandbox();
|
|
|
+
|
|
|
beforeEach( () => {
|
|
|
locale = new Locale( 'en' );
|
|
|
view = new ClassicEditorUIView( locale );
|
|
|
@@ -70,6 +75,8 @@ describe( 'ClassicEditorUIView', () => {
|
|
|
|
|
|
describe( 'editableElement', () => {
|
|
|
it( 'returns editable\'s view element', () => {
|
|
|
+ testUtils.sinon.stub( log, 'warn' ).callsFake( () => {} );
|
|
|
+
|
|
|
document.body.appendChild( view.element );
|
|
|
|
|
|
view.stickyPanel.limiterElement = view.element;
|