Sfoglia il codice sorgente

Removed other occurences of in tests.

Szymon Kupś 9 anni fa
parent
commit
856a047f76

+ 1 - 1
packages/ckeditor5-engine/tests/_utils-tests/model.js

@@ -43,7 +43,7 @@ describe( 'model test utils', () => {
 			root.appendChildren( new Element( 'b', null, [ 'btext' ] ) );
 			document.selection.addRange( Range.createFromParentsAndOffsets( root, 0, root, 1 ) );
 
-			expect( getData( document, { withSelection: true } ) ).to.equal( '<selection><b>btext</b></selection>' );
+			expect( getData( document ) ).to.equal( '<selection><b>btext</b></selection>' );
 			sinon.assert.calledOnce( stringifySpy );
 			sinon.assert.calledWithExactly( stringifySpy, root, document.selection );
 		} );

+ 1 - 1
packages/ckeditor5-engine/tests/_utils-tests/view.js

@@ -93,7 +93,7 @@ describe( 'view test utils', () => {
 				treeView.createRoot( document.createElement( 'div' ) );
 				setData( treeView, data );
 
-				expect( getData( treeView, { withSelection: true } ) ).to.equal( '[<b>baz</b>]' );
+				expect( getData( treeView ) ).to.equal( '[<b>baz</b>]' );
 				const args = parseSpy.firstCall.args;
 				expect( args[ 0 ] ).to.equal( data );
 				expect( args[ 1 ] ).to.be.an( 'object' );

+ 1 - 1
packages/ckeditor5-engine/tests/treemodel/composer/composer.js

@@ -57,7 +57,7 @@ describe( 'Composer', () => {
 				}
 			} );
 
-			expect( getData( document, { withSelection: true } ) )
+			expect( getData( document ) )
 				.to.equal( '<p>fo<selection backward>o</selection>bar</p>' );
 		} );
 	} );

+ 1 - 1
packages/ckeditor5-engine/tests/treemodel/composer/deletecontents.js

@@ -219,7 +219,7 @@ describe( 'Delete utils', () => {
 
 				deleteContents( document.batch(), document.selection, options );
 
-				expect( getData( document, { withSelection: true } ) ).to.equal( output );
+				expect( getData( document ) ).to.equal( output );
 			} );
 		}
 	} );

+ 1 - 1
packages/ckeditor5-engine/tests/treemodel/composer/modifyselection.js

@@ -233,7 +233,7 @@ describe( 'Delete utils', () => {
 
 			modifySelection( document.selection, options );
 
-			expect( getData( document, { withSelection: true } ) ).to.equal( output );
+			expect( getData( document ) ).to.equal( output );
 		} );
 	}
 } );