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

Commit

Permalink
Test: Used VirtaulTestEditor instead of Dropped StandardEditor.
Browse files Browse the repository at this point in the history
  • Loading branch information
oskarwrobel committed Jan 11, 2018
1 parent f56bddf commit 653f488
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions tests/dev-utils/enableenginedebug.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

import { default as enableEngineDebug, disableEngineDebug } from '../../src/dev-utils/enableenginedebug';
import Editor from '@ckeditor/ckeditor5-core/src/editor/editor';
import StandardEditor from '@ckeditor/ckeditor5-core/src/editor/standardeditor';
import VirtualTestEditor from '@ckeditor/ckeditor5-core/tests/_utils/virtualtesteditor';
import Plugin from '@ckeditor/ckeditor5-core/src/plugin';

import ModelPosition from '../../src/model/position';
Expand Down Expand Up @@ -51,8 +51,6 @@ import testUtils from '@ckeditor/ckeditor5-core/tests/_utils/utils';

testUtils.createSinonSandbox();

/* global document */

describe( 'enableEngineDebug', () => {
afterEach( () => {
disableEngineDebug();
Expand Down Expand Up @@ -105,8 +103,6 @@ describe( 'disableEngineDebug', () => {
describe( 'debug tools', () => {
let DebugPlugin, log, error;

class TestEditor extends StandardEditor {}

before( () => {
log = sinon.spy();
error = sinon.spy();
Expand Down Expand Up @@ -781,9 +777,7 @@ describe( 'debug tools', () => {
let editor;

beforeEach( () => {
const div = document.createElement( 'div' );

return TestEditor.create( div, {
return VirtualTestEditor.create( {
plugins: [ DebugPlugin ]
} ).then( _editor => {
editor = _editor;
Expand Down

0 comments on commit 653f488

Please sign in to comment.