Skip to content
This repository has been archived by the owner on Jun 26, 2020. It is now read-only.

Commit

Permalink
Fixed failing tests on FF.
Browse files Browse the repository at this point in the history
  • Loading branch information
ma2ciek committed Sep 19, 2018
1 parent 4c72221 commit e2cc5fc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/widgettoolbarrepository.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions tests/widgettoolbarrepository.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 );

Expand All @@ -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 );

Expand Down

0 comments on commit e2cc5fc

Please sign in to comment.