Browse Source

Fixed failing tests on FF.

Maciej Bukowski 7 years ago
parent
commit
212cb41efd

+ 2 - 2
packages/ckeditor5-widget/src/widgettoolbarrepository.js

@@ -97,8 +97,8 @@ export default class WidgetToolbarRepository extends Plugin {
 	 * `visibleWhen` function. Toolbar items are gathered from `toolbarItems` array.
 	 * The balloon's CSS class is by default `ck-toolbar-container` and may be override with the `balloonClassName` option.
 	 *
-	 * Note: This method should be called in the {@link module:core/plugin/plugin~Plugin#afterInit `Plugin#afterInit()`} callback (or later)
-	 * to make sure that the given toolbar items were already registered by other plugins.
+	 * Note: This method should be called in the {@link module:core/plugin~PluginInterface#afterInit `Plugin#afterInit()`}
+	 * callback (or later) to make sure that the given toolbar items were already registered by other plugins.
 	 *
 	 * @param {String} toolbarId An id for the toolbar. Used to
 	 * @param {Object} options

+ 2 - 2
packages/ckeditor5-widget/tests/widgettoolbarrepository.js

@@ -233,7 +233,7 @@ describe( 'WidgetToolbarRepository - integration with the BalloonToolbar', () =>
 		const fakeWidgetToolbarView = widgetToolbarRepository._toolbars.get( 'fake' ).view;
 
 		setData( model, '[<fake-widget></fake-widget>]<paragraph>foo</paragraph>' );
-		editor.ui.fire( 'update' );
+		editor.ui.focusTracker.isFocused = true;
 
 		clock.tick( 200 );
 
@@ -247,7 +247,7 @@ describe( 'WidgetToolbarRepository - integration with the BalloonToolbar', () =>
 		} );
 
 		setData( model, '<fake-widget></fake-widget><paragraph>[foo]</paragraph>' );
-		editor.ui.fire( 'update' );
+		editor.ui.focusTracker.isFocused = true;
 
 		clock.tick( 200 );