From 3c49e51b4775aa2a4c642698f56234fe47328f70 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomek=20Wytr=C4=99bowicz?= Date: Mon, 20 Apr 2020 17:25:55 +0200 Subject: [PATCH] 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. --- packages/ckeditor5-ui/tests/icon/iconview.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/ckeditor5-ui/tests/icon/iconview.js b/packages/ckeditor5-ui/tests/icon/iconview.js index 310629810a6..cc271681208 100644 --- a/packages/ckeditor5-ui/tests/icon/iconview.js +++ b/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 ); }