From 1f2d981121cfd3a9386516b6186d3634d6a9a67c Mon Sep 17 00:00:00 2001 From: Sebastian Helzle Date: Tue, 8 Oct 2019 09:43:32 +0200 Subject: [PATCH] Make sure test for namespaced elements fail without change --- tests/view/domconverter/dom-to-view.js | 9 --------- tests/view/domconverter/view-to-dom.js | 9 +++++++++ 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/tests/view/domconverter/dom-to-view.js b/tests/view/domconverter/dom-to-view.js index 48f1665ca..5880cea45 100644 --- a/tests/view/domconverter/dom-to-view.js +++ b/tests/view/domconverter/dom-to-view.js @@ -175,15 +175,6 @@ describe( 'DomConverter', () => { expect( converter.domToView( comment ) ).to.be.null; } ); - it( 'should create namespaced elements', () => { - const namespace = 'http://www.w3.org/2000/svg'; - const svg = createElement( document, 'svg', { xmlns: namespace } ); - - const viewSvg = converter.domToView( svg ); - - expect( viewSvg.getAttribute( 'xmlns' ) ).to.equal( namespace ); - } ); - describe( 'it should clear whitespaces', () => { it( 'at the beginning of block element', () => { const domDiv = createElement( document, 'div', {}, [ diff --git a/tests/view/domconverter/view-to-dom.js b/tests/view/domconverter/view-to-dom.js index 5948600fa..57c03eb70 100644 --- a/tests/view/domconverter/view-to-dom.js +++ b/tests/view/domconverter/view-to-dom.js @@ -174,6 +174,15 @@ describe( 'DomConverter', () => { expect( domTextNode.data ).to.equal( 'foo' ); } ); + it( 'should create namespaced elements', () => { + const namespace = 'http://www.w3.org/2000/svg'; + const viewSvg = new ViewElement( 'svg', { xmlns: namespace } ); + + const domSvg = converter.viewToDom( viewSvg, document ); + + expect( domSvg.createSVGRect ).to.be.a( 'function' ); + } ); + describe( 'it should convert spaces to  ', () => { it( 'at the beginning of each container element', () => { const viewDiv = new ViewContainerElement( 'div', null, [