|
|
@@ -7,6 +7,7 @@
|
|
|
|
|
|
import ComponentFactory from '@ckeditor/ckeditor5-ui/src/componentfactory';
|
|
|
import View from '@ckeditor/ckeditor5-ui/src/view';
|
|
|
+import RootEditableElement from '@ckeditor/ckeditor5-engine/src/view/rooteditableelement';
|
|
|
|
|
|
import InlineEditorUI from '../src/inlineeditorui';
|
|
|
import InlineEditorUIView from '../src/inlineeditoruiview';
|
|
|
@@ -57,6 +58,16 @@ describe( 'InlineEditorUI', () => {
|
|
|
expect( ui.focusTracker ).to.be.instanceOf( FocusTracker );
|
|
|
} );
|
|
|
|
|
|
+ it( 'creates root editable element', () => {
|
|
|
+ expect( editor.editing.view.getRoot() ).to.be.instanceOf( RootEditableElement );
|
|
|
+ } );
|
|
|
+ } );
|
|
|
+
|
|
|
+ describe( 'init()', () => {
|
|
|
+ it( 'renders the #view', () => {
|
|
|
+ expect( view.isRendered ).to.be.true;
|
|
|
+ } );
|
|
|
+
|
|
|
describe( 'panel', () => {
|
|
|
it( 'binds view.panel#isVisible to editor.ui#focusTracker', () => {
|
|
|
ui.focusTracker.isFocused = false;
|
|
|
@@ -147,12 +158,6 @@ describe( 'InlineEditorUI', () => {
|
|
|
);
|
|
|
} );
|
|
|
} );
|
|
|
- } );
|
|
|
-
|
|
|
- describe( 'init()', () => {
|
|
|
- it( 'renders the #view', () => {
|
|
|
- expect( view.isRendered ).to.be.true;
|
|
|
- } );
|
|
|
|
|
|
describe( 'view.toolbar#items', () => {
|
|
|
it( 'are filled with the config.toolbar (specified as an Array)', () => {
|