Przeglądaj źródła

Test: Used VirtaulTestEditor instead of Dropped StandardEditor.

Oskar Wróbel 8 lat temu
rodzic
commit
67f641d6cd

+ 2 - 8
packages/ckeditor5-engine/tests/dev-utils/enableenginedebug.js

@@ -5,7 +5,7 @@
 
 
 import { default as enableEngineDebug, disableEngineDebug } from '../../src/dev-utils/enableenginedebug';
 import { default as enableEngineDebug, disableEngineDebug } from '../../src/dev-utils/enableenginedebug';
 import Editor from '@ckeditor/ckeditor5-core/src/editor/editor';
 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 Plugin from '@ckeditor/ckeditor5-core/src/plugin';
 
 
 import ModelPosition from '../../src/model/position';
 import ModelPosition from '../../src/model/position';
@@ -51,8 +51,6 @@ import testUtils from '@ckeditor/ckeditor5-core/tests/_utils/utils';
 
 
 testUtils.createSinonSandbox();
 testUtils.createSinonSandbox();
 
 
-/* global document */
-
 describe( 'enableEngineDebug', () => {
 describe( 'enableEngineDebug', () => {
 	afterEach( () => {
 	afterEach( () => {
 		disableEngineDebug();
 		disableEngineDebug();
@@ -105,8 +103,6 @@ describe( 'disableEngineDebug', () => {
 describe( 'debug tools', () => {
 describe( 'debug tools', () => {
 	let DebugPlugin, log, error;
 	let DebugPlugin, log, error;
 
 
-	class TestEditor extends StandardEditor {}
-
 	before( () => {
 	before( () => {
 		log = sinon.spy();
 		log = sinon.spy();
 		error = sinon.spy();
 		error = sinon.spy();
@@ -781,9 +777,7 @@ describe( 'debug tools', () => {
 		let editor;
 		let editor;
 
 
 		beforeEach( () => {
 		beforeEach( () => {
-			const div = document.createElement( 'div' );
-
-			return TestEditor.create( div, {
+			return VirtualTestEditor.create( {
 				plugins: [ DebugPlugin ]
 				plugins: [ DebugPlugin ]
 			} ).then( _editor => {
 			} ).then( _editor => {
 				editor = _editor;
 				editor = _editor;