Przeglądaj źródła

Used `Node#appendChild` method instead of `Node#append`.

Kamil Piechaczek 8 lat temu
rodzic
commit
417d9ab1f8
1 zmienionych plików z 2 dodań i 2 usunięć
  1. 2 2
      packages/ckeditor5-utils/tests/dom/rect.js

+ 2 - 2
packages/ckeditor5-utils/tests/dom/rect.js

@@ -435,7 +435,7 @@ describe( 'Rect', () => {
 			ancestorA = document.createElement( 'div' );
 			ancestorB = document.createElement( 'div' );
 
-			ancestorA.append( element );
+			ancestorA.appendChild( element );
 			document.body.appendChild( ancestorA );
 		} );
 
@@ -575,7 +575,7 @@ describe( 'Rect', () => {
 		} );
 
 		it( 'should return the visible rect (HTMLElement), partially cropped, deep ancestor overflow', () => {
-			ancestorB.append( ancestorA );
+			ancestorB.appendChild( ancestorA );
 			document.body.appendChild( ancestorB );
 
 			testUtils.sinon.stub( element, 'getBoundingClientRect' ).returns( {