Przeglądaj źródła

Tests: Some changes I quite don't understand but they make tests green for whatever the reason.

Aleksander Nowodzinski 7 lat temu
rodzic
commit
9952e0d054

+ 1 - 3
packages/ckeditor5-widget/tests/widgettoolbarrepository.js

@@ -293,8 +293,6 @@ describe( 'WidgetToolbarRepository - integration with the BalloonToolbar', () =>
 				widgetToolbarRepository = editor.plugins.get( WidgetToolbarRepository );
 				balloon = editor.plugins.get( 'ContextualBalloon' );
 				balloonToolbar = editor.plugins.get( 'BalloonToolbar' );
-
-				editor.ui.focusTracker.isFocused = true;
 			} );
 	} );
 
@@ -327,7 +325,7 @@ describe( 'WidgetToolbarRepository - integration with the BalloonToolbar', () =>
 		} );
 
 		setData( model, '<fake-widget></fake-widget><paragraph>[foo]</paragraph>' );
-		editor.ui.focusTracker.isFocused = true;
+		editor.editing.view.document.isFocused = true;
 
 		clock.tick( 200 );