From e2c08416d4179a67b235a793b8e99468ed975be0 Mon Sep 17 00:00:00 2001 From: Kamil Piechaczek Date: Sun, 2 Jul 2017 21:26:33 +0200 Subject: [PATCH 1/2] Internal: Simplified the plugin names. --- src/notification/notification.js | 2 +- src/panel/balloon/contextualballoon.js | 2 +- src/toolbar/contextual/contextualtoolbar.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/notification/notification.js b/src/notification/notification.js index 1b57b500..0062b6f8 100644 --- a/src/notification/notification.js +++ b/src/notification/notification.js @@ -28,7 +28,7 @@ export default class Notification extends Plugin { * @inheritDoc */ static get pluginName() { - return 'ui/notification'; + return 'Notification'; } /** diff --git a/src/panel/balloon/contextualballoon.js b/src/panel/balloon/contextualballoon.js index dc406761..e97fd2c7 100644 --- a/src/panel/balloon/contextualballoon.js +++ b/src/panel/balloon/contextualballoon.js @@ -32,7 +32,7 @@ export default class ContextualBalloon extends Plugin { * @inheritDoc */ static get pluginName() { - return 'ui/contextualballoon'; + return 'ContextualBalloon'; } /** diff --git a/src/toolbar/contextual/contextualtoolbar.js b/src/toolbar/contextual/contextualtoolbar.js index 60d72d7e..adcfcc02 100644 --- a/src/toolbar/contextual/contextualtoolbar.js +++ b/src/toolbar/contextual/contextualtoolbar.js @@ -26,7 +26,7 @@ export default class ContextualToolbar extends Plugin { * @inheritDoc */ static get pluginName() { - return 'ui/contextualtoolbar'; + return 'ContextualToolbar'; } /** From c9eb9c0dbe7e19755eac2acd3ec51f22ce871408 Mon Sep 17 00:00:00 2001 From: Kamil Piechaczek Date: Sun, 2 Jul 2017 22:16:00 +0200 Subject: [PATCH 2/2] Fixed broken tests. --- tests/panel/balloon/contextualballoon.js | 2 +- tests/toolbar/contextual/contextualtoolbar.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/panel/balloon/contextualballoon.js b/tests/panel/balloon/contextualballoon.js index fd5849d0..da5651c2 100644 --- a/tests/panel/balloon/contextualballoon.js +++ b/tests/panel/balloon/contextualballoon.js @@ -56,7 +56,7 @@ describe( 'ContextualBalloon', () => { describe( 'pluginName', () => { it( 'should return plugin by name', () => { - expect( editor.plugins.get( 'ui/contextualballoon' ) ).to.equal( balloon ); + expect( editor.plugins.get( 'ContextualBalloon' ) ).to.equal( balloon ); } ); } ); diff --git a/tests/toolbar/contextual/contextualtoolbar.js b/tests/toolbar/contextual/contextualtoolbar.js index 3cde89e9..d0ac78d1 100644 --- a/tests/toolbar/contextual/contextualtoolbar.js +++ b/tests/toolbar/contextual/contextualtoolbar.js @@ -109,7 +109,7 @@ describe( 'ContextualToolbar', () => { describe( 'pluginName', () => { it( 'should return plugin by its name', () => { - expect( editor.plugins.get( 'ui/contextualtoolbar' ) ).to.equal( contextualToolbar ); + expect( editor.plugins.get( 'ContextualToolbar' ) ).to.equal( contextualToolbar ); } ); } );