|
|
@@ -7,6 +7,7 @@
|
|
|
|
|
|
import ClassicTestEditor from '@ckeditor/ckeditor5-core/tests/_utils/classictesteditor';
|
|
|
import Widget from '../src/widget';
|
|
|
+import WidgetTypeAround from '../src/widgettypearound/widgettypearound';
|
|
|
import Typing from '@ckeditor/ckeditor5-typing/src/typing';
|
|
|
import MouseObserver from '@ckeditor/ckeditor5-engine/src/view/observer/mouseobserver';
|
|
|
import { toWidget } from '../src/utils';
|
|
|
@@ -129,6 +130,10 @@ describe( 'Widget', () => {
|
|
|
expect( view.getObserver( MouseObserver ) ).to.be.instanceof( MouseObserver );
|
|
|
} );
|
|
|
|
|
|
+ it( 'should require the WidgetTypeAround plugin', () => {
|
|
|
+ expect( Widget.requires ).to.have.members( [ WidgetTypeAround ] );
|
|
|
+ } );
|
|
|
+
|
|
|
it( 'should create selection over clicked widget', () => {
|
|
|
setModelData( model, '[]<widget></widget>' );
|
|
|
const viewDiv = viewDocument.getRoot().getChild( 0 );
|