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

Revert "Added tests to view.WidgetElement."

This reverts commit 12c07ba9b1e469e71c57663b101a3f638280b5e3.
Szymon Kupś 9 лет назад
Родитель
Сommit
ed0f9e2b3d

+ 1 - 1
packages/ckeditor5-engine/src/view/element.js

@@ -139,7 +139,7 @@ export default class Element extends Node {
 			}
 		}
 
-		// ContainerElement, AttributeElement, WidgetElement and EmptyElement should be also cloned properly.
+		// ContainerElement, AttributeElement and EmptyElement should be also cloned properly.
 		const cloned = new this.constructor( this.name, this._attrs, childrenClone );
 
 		// Classes and styles are cloned separately - this solution is faster than adding them back to attributes and

+ 0 - 29
packages/ckeditor5-engine/tests/view/widgetelement.js

@@ -1,29 +0,0 @@
-/**
- * @license Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
- * For licensing, see LICENSE.md.
- */
-
-/* bender-tags: view */
-
-import WidgetElement from 'ckeditor5/engine/view/widgetelement.js';
-
-describe( 'EmptyElement', () => {
-	let widgetElement;
-
-	beforeEach( () => {
-		widgetElement = new WidgetElement( 'figure' );
-	} );
-
-	describe( 'constructor', () => {
-		it( 'should set contenteditable attribute to false', () => {
-			expect( widgetElement.hasAttribute( 'contenteditable' ) ).to.be.true;
-			expect( widgetElement.getAttribute( 'contenteditable' ) ).to.be.false;
-		} );
-	} );
-
-	describe( 'getFillerOffset', () => {
-		it( 'should return null', () => {
-			expect( widgetElement.getFillerOffset() ).to.be.null;
-		} );
-	} );
-} );