8
0
Просмотр исходного кода

Added test to view selection isEqual method to have 100% CC.

Szymon Kupś 9 лет назад
Родитель
Сommit
670f2e6f1e
1 измененных файлов с 6 добавлено и 0 удалено
  1. 6 0
      packages/ckeditor5-engine/tests/view/selection.js

+ 6 - 0
packages/ckeditor5-engine/tests/view/selection.js

@@ -490,6 +490,12 @@ describe( 'Selection', () => {
 
 			expect( selection.isEqual( otherSelection ) ).to.be.false;
 		} );
+
+		it( 'should return true if both selections are empty', () => {
+			const otherSelection = new Selection();
+
+			expect( selection.isEqual( otherSelection ) ).to.be.true;
+		} );
 	} );
 
 	describe( 'removeAllRanges', () => {