Kaynağa Gözat

Revert "Other: Remove the Edge-specific assertion for SVG content. ckeditor/ckeditor5#6202."

As it was accidentally pushed to the master, instead of i/6202-remove-env.isEdge
This reverts commit 9427addeae19dddcfa711915b5d8fcacdab3c43f.
Tomek Wytrębowicz 5 yıl önce
ebeveyn
işleme
3c49e51b47
1 değiştirilmiş dosya ile 2 ekleme ve 1 silme
  1. 2 1
      packages/ckeditor5-ui/tests/icon/iconview.js

+ 2 - 1
packages/ckeditor5-ui/tests/icon/iconview.js

@@ -131,6 +131,7 @@ describe( 'IconView', () => {
 } );
 
 function assertIconInnerHTML( icon, expected ) {
-	expect( normalizeHtml( icon.element.innerHTML ) )
+	// Edge adds the xmlns attribute to each node when obtaining from parent's innerHTML.
+	expect( normalizeHtml( icon.element.innerHTML.replace( /xmlns="[^"]+"/, '' ) ) )
 		.to.equal( expected );
 }