8
0
Просмотр исходного кода

Removed changing view root name from VirtualTestEditor.

Oskar Wróbel 8 лет назад
Родитель
Сommit
62dc36d447

+ 1 - 9
packages/ckeditor5-core/tests/_utils-tests/virtualtesteditor.js

@@ -19,16 +19,8 @@ describe( 'VirtualTestEditor', () => {
 			const editor = new VirtualTestEditor( { foo: 1 } );
 
 			expect( editor ).to.be.instanceof( StandardEditor );
-
-			expect( editor.config.get( 'foo' ) ).to.equal( 1 );
-		} );
-
-		it( 'creates model and view roots', () => {
-			const editor = new VirtualTestEditor( { foo: 1 } );
-
-			expect( editor.model.document.getRoot() ).to.have.property( 'name', '$root' );
-			expect( editor.editing.view.getRoot() ).to.have.property( 'name', 'div' );
 			expect( editor.data.processor ).to.be.instanceof( HtmlDataProcessor );
+			expect( editor.config.get( 'foo' ) ).to.equal( 1 );
 		} );
 	} );
 

+ 0 - 4
packages/ckeditor5-core/tests/_utils/virtualtesteditor.js

@@ -19,10 +19,6 @@ export default class VirtualTestEditor extends StandardEditor {
 		super( null, config );
 
 		this.data.processor = new HtmlDataProcessor();
-
-		// Lets change view root element name from $root to div.
-		// This will look more friendly in view tests.
-		this.editing.view.getRoot().name = 'div';
 	}
 
 	/**