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

Commit

Permalink
Merge pull request #194 from ckeditor/t/ckeditor5-core/180
Browse files Browse the repository at this point in the history
Internal: Changed `VirtualTestEditor` to `ClassicTestEditor` in delete feature tests. Part of the https://github.com/ckeditor/ckeditor5-core/issues/180.
  • Loading branch information
Piotr Jasiun committed Jun 25, 2019
2 parents 34f1dc5 + 9607933 commit 813594f
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions tests/delete.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,29 @@
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/

import VirtualTestEditor from '@ckeditor/ckeditor5-core/tests/_utils/virtualtesteditor';
import Delete from '../src/delete';
import DomEventData from '@ckeditor/ckeditor5-engine/src/view/observer/domeventdata';
import ClassicTestEditor from '@ckeditor/ckeditor5-core/tests/_utils/classictesteditor';

/* globals document */

describe( 'Delete feature', () => {
let editor, viewDocument;
let element, editor, viewDocument;

beforeEach( () => {
return VirtualTestEditor
.create( { plugins: [ Delete ] } )
element = document.createElement( 'div' );
document.body.appendChild( element );

return ClassicTestEditor
.create( element, { plugins: [ Delete ] } )
.then( newEditor => {
editor = newEditor;
viewDocument = editor.editing.view.document;
} );
} );

afterEach( () => {
element.remove();
return editor.destroy();
} );

Expand Down

0 comments on commit 813594f

Please sign in to comment.