diff --git a/test/compiler/svg-child-component/Rect.html b/test/compiler/svg-child-component/Rect.html new file mode 100644 index 0000000000..b9c3fae27b --- /dev/null +++ b/test/compiler/svg-child-component/Rect.html @@ -0,0 +1 @@ + diff --git a/test/compiler/svg-child-component/_config.js b/test/compiler/svg-child-component/_config.js new file mode 100644 index 0000000000..977b02407d --- /dev/null +++ b/test/compiler/svg-child-component/_config.js @@ -0,0 +1,20 @@ +export default { + skip: true, + data: { + x: 0, + y: 0, + width: 100, + height: 100 + }, + html: ``, + test ( assert, component, target ) { + const svg = target.querySelector( 'svg' ); + const rect = target.querySelector( 'rect' ); + + assert.equal( svg.namespaceURI, 'http://www.w3.org/2000/svg' ); + assert.equal( rect.namespaceURI, 'http://www.w3.org/2000/svg' ); + + component.set({ width: 150, height: 50 }); + assert.equal( target.innerHTML, `` ); + } +}; diff --git a/test/compiler/svg-child-component/main.html b/test/compiler/svg-child-component/main.html new file mode 100644 index 0000000000..226687a3d1 --- /dev/null +++ b/test/compiler/svg-child-component/main.html @@ -0,0 +1,10 @@ + + + +