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

Used "testUtils.checkAssertions()" in test (some element in Edge is rendered in different way).

Kamil Piechaczek 8 лет назад
Родитель
Сommit
58bc56b903
1 измененных файлов с 16 добавлено и 5 удалено
  1. 16 5
      packages/ckeditor5-link/tests/unlinkcommand.js

+ 16 - 5
packages/ckeditor5-link/tests/unlinkcommand.js

@@ -66,11 +66,22 @@ describe( 'UnlinkCommand', () => {
 
 				command.execute();
 
-				expect( getData( document ) ).to.equal(
-					'<$text bold="true" linkHref="url">f</$text>' +
-					'[<$text bold="true">ooba</$text>]' +
-					'<$text bold="true" linkHref="url">r</$text>'
-				);
+				const assertAll = () => {
+					expect( getData( document ) ).to.equal(
+						'<$text bold="true" linkHref="url">f</$text>' +
+						'[<$text bold="true">ooba</$text>]' +
+						'<$text bold="true" linkHref="url">r</$text>'
+					);
+				};
+
+				const assertEdge = () => {
+					expect( getData( document ) ).to.equal(
+						'<$text bold="true" linkHref="url">f</$text>' +
+						'[<$text bold="true">ooba]<$text linkHref="url">r</$text></$text>'
+					);
+				};
+
+				testUtils.checkAssertions( assertAll, assertEdge );
 			} );
 
 			it( 'should remove `linkHref` attribute from selected text when attributes have different value', () => {