浏览代码

Tests: Minor fixes to Template tests after API changes in ViewCollection class.

Aleksander Nowodzinski 9 年之前
父节点
当前提交
bdcea6bd8c
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      packages/ckeditor5-ui/tests/template.js

+ 2 - 2
packages/ckeditor5-ui/tests/template.js

@@ -482,7 +482,7 @@ describe( 'Template', () => {
 				expect( v1.element ).to.equal( rendered.firstChild );
 				expect( v2.element ).to.equal( rendered.lastChild );
 
-				expect( collection.parent ).to.equal( rendered );
+				expect( collection._parentElement ).to.equal( rendered );
 			} );
 		} );
 
@@ -697,7 +697,7 @@ describe( 'Template', () => {
 				} ).apply( el );
 
 				expect( normalizeHtml( el.outerHTML ) ).to.equal( '<div></div>' );
-				expect( collection.parent ).to.be.null;
+				expect( collection._parentElement ).to.be.null;
 			} );
 
 			it( 'should work for deep DOM structure', () => {