Skip to content
This repository has been archived by the owner on Jun 26, 2020. It is now read-only.

Commit

Permalink
Make sure test for namespaced elements fail without change
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebobo committed Oct 8, 2019
1 parent ec7a9bb commit 1f2d981
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
9 changes: 0 additions & 9 deletions tests/view/domconverter/dom-to-view.js
Original file line number Diff line number Diff line change
Expand Up @@ -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', {}, [
Expand Down
9 changes: 9 additions & 0 deletions tests/view/domconverter/view-to-dom.js
Original file line number Diff line number Diff line change
Expand Up @@ -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, [
Expand Down

0 comments on commit 1f2d981

Please sign in to comment.