浏览代码

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 年之前
父节点
当前提交
3c49e51b47
共有 1 个文件被更改,包括 2 次插入1 次删除
  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 );
 }