|
@@ -168,6 +168,14 @@ describe( 'Link', () => {
|
|
|
expect( selectUrlInputSpy.calledOnce ).to.true;
|
|
expect( selectUrlInputSpy.calledOnce ).to.true;
|
|
|
} );
|
|
} );
|
|
|
|
|
|
|
|
|
|
+ it( 'should add balloon panel element to focus manager', () => {
|
|
|
|
|
+ editor.focusManager.isFocused = false;
|
|
|
|
|
+
|
|
|
|
|
+ balloonPanel.view.element.dispatchEvent( new Event( 'focus' ) );
|
|
|
|
|
+
|
|
|
|
|
+ expect( editor.focusManager.isFocused ).to.true;
|
|
|
|
|
+ } );
|
|
|
|
|
+
|
|
|
describe( 'binding', () => {
|
|
describe( 'binding', () => {
|
|
|
it( 'should bind balloonPanel#model to link command', () => {
|
|
it( 'should bind balloonPanel#model to link command', () => {
|
|
|
const model = balloonPanel.model;
|
|
const model = balloonPanel.model;
|
|
@@ -405,4 +413,4 @@ function dispatchKeyboardEvent( element, eventName, keyCode ) {
|
|
|
event.keyCode = keyCode;
|
|
event.keyCode = keyCode;
|
|
|
|
|
|
|
|
element.dispatchEvent( event );
|
|
element.dispatchEvent( event );
|
|
|
-}
|
|
|
|
|
|
|
+}
|