8
0
Quellcode durchsuchen

Simplified the test.

Oskar Wróbel vor 6 Jahren
Ursprung
Commit
23f864bf6f
1 geänderte Dateien mit 3 neuen und 6 gelöschten Zeilen
  1. 3 6
      packages/ckeditor5-engine/tests/model/differ.js

+ 3 - 6
packages/ckeditor5-engine/tests/model/differ.js

@@ -646,13 +646,10 @@ describe( 'Differ', () => {
 			const sourcePosition = new Position( root, [ 0 ] );
 			const targetPosition = new Position( root, [ 2 ] );
 
+			// Add two more elements to the root, now there are 4 paragraphs.
 			root._appendChild( [
-				new Element( 'paragraph', null, [
-					new Text( 'x' )
-				] ),
-				new Element( 'paragraph', null, [
-					new Text( 'y' )
-				] )
+				new Element( 'paragraph' ),
+				new Element( 'paragraph' )
 			] );
 
 			model.change( () => {