Răsfoiți Sursa

Fixed tests which got broken when merging master to this branch.

Piotrek Koszuliński 9 ani în urmă
părinte
comite
7eeafa9213

+ 1 - 1
packages/ckeditor5-engine/src/model/liveselection.js

@@ -289,7 +289,7 @@ export default class LiveSelection extends Selection {
 	}
 
 	/**
-	 * Updates this selection attributes according to it's ranges and the {@link engine.model.Document model document}.
+	 * Updates this selection attributes according to its ranges and the {@link engine.model.Document model document}.
 	 *
 	 * @protected
 	 * @param {Boolean} clearAll

+ 2 - 2
packages/ckeditor5-engine/tests/model/composer/deletecontents.js

@@ -115,14 +115,14 @@ describe( 'Delete utils', () => {
 
 				deleteContents( doc.batch(), doc.selection );
 
-				expect( getData( doc ) ).to.equal( '<p>x</p><p>[]</p><p>y</p>' );
+				expect( getData( doc ) ).to.equal( '<paragraph>x</paragraph><paragraph>[]</paragraph><paragraph>y</paragraph>' );
 				expect( doc.selection.getAttribute( 'bold' ) ).to.undefined;
 			} );
 
 			it( 'leaves selection attributes when text contains them', () => {
 				setData(
 					doc,
-					'<paragraph>x</paragraph><paragraph>[<$text bold="true">foo</$text>]</paragraph><paragraph>y</paragraph>',
+					'<paragraph>x<$text bold="true">a[foo]b</$text>y</paragraph>',
 					{
 						selectionAttributes: {
 							bold: true