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

Commit

Permalink
Cleaned up.
Browse files Browse the repository at this point in the history
  • Loading branch information
ma2ciek committed Sep 18, 2018
1 parent b2f47b2 commit 39eba17
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 14 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
},
"devDependencies": {
"@ckeditor/ckeditor5-basic-styles": "^10.0.2",
"@ckeditor/ckeditor5-editor-balloon": "^11.0.0",
"@ckeditor/ckeditor5-editor-classic": "^11.0.0",
"@ckeditor/ckeditor5-essentials": "^10.1.1",
"@ckeditor/ckeditor5-paragraph": "^10.0.2",
Expand Down
28 changes: 14 additions & 14 deletions tests/widgettoolbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,32 +5,32 @@

/* global document */

import ClassicEditor from '@ckeditor/ckeditor5-editor-classic/src/classiceditor';
import global from '@ckeditor/ckeditor5-utils/src/dom/global';
import ClassicTestEditor from '@ckeditor/ckeditor5-core/tests/_utils/classictesteditor';
import BalloonEditor from '@ckeditor/ckeditor5-editor-balloon/src/ballooneditor';
import Plugin from '@ckeditor/ckeditor5-core/src/plugin';
import ButtonView from '@ckeditor/ckeditor5-ui/src/button/buttonview';
import Paragraph from '@ckeditor/ckeditor5-paragraph/src/paragraph';
import { setData } from '@ckeditor/ckeditor5-engine/src/dev-utils/model';
import testUtils from '@ckeditor/ckeditor5-core/tests/_utils/utils';
import WidgetToolbar from '../src/widgettoolbar';
import Bold from '@ckeditor/ckeditor5-basic-styles/src/bold';
import Widget from '../src/widget';
import { isWidget, toWidget } from '@ckeditor/ckeditor5-widget/src/utils';
import WidgetToolbar from '../src/widgettoolbar';
import { isWidget, toWidget } from '../src/utils';
import { downcastElementToElement } from '@ckeditor/ckeditor5-engine/src/conversion/downcast-converters';
import { upcastElementToElement } from '@ckeditor/ckeditor5-engine/src/conversion/upcast-converters';
import BalloonEditor from '@ckeditor/ckeditor5-editor-balloon/src/ballooneditor';
import Bold from '@ckeditor/ckeditor5-basic-styles/src/bold';
import ButtonView from '@ckeditor/ckeditor5-ui/src/button/buttonview';
import View from '@ckeditor/ckeditor5-ui/src/view';

import { setData } from '@ckeditor/ckeditor5-engine/src/dev-utils/model';
import testUtils from '@ckeditor/ckeditor5-core/tests/_utils/utils';

describe( 'WidgetToolbar', () => {
let editor, model, balloon, widgetToolbar, editorElement;

testUtils.createSinonSandbox();

beforeEach( () => {
editorElement = global.document.createElement( 'div' );
global.document.body.appendChild( editorElement );
editorElement = document.createElement( 'div' );
document.body.appendChild( editorElement );

return ClassicEditor
return ClassicTestEditor
.create( editorElement, {
plugins: [ Paragraph, FakeButton, WidgetToolbar, FakeWidget ],
fake: {
Expand Down Expand Up @@ -238,8 +238,8 @@ describe( 'WidgetToolbar - integration with the BalloonToolbar', () => {
testUtils.createSinonSandbox();

beforeEach( () => {
editorElement = global.document.createElement( 'div' );
global.document.body.appendChild( editorElement );
editorElement = document.createElement( 'div' );
document.body.appendChild( editorElement );
clock = testUtils.sinon.useFakeTimers();

return BalloonEditor
Expand Down

0 comments on commit 39eba17

Please sign in to comment.