diff --git a/test/generator/css-space-in-attribute/Widget.html b/test/generator/css-space-in-attribute/Widget.html new file mode 100644 index 0000000000..929e1d40b0 --- /dev/null +++ b/test/generator/css-space-in-attribute/Widget.html @@ -0,0 +1,11 @@ +
+ + diff --git a/test/generator/css-space-in-attribute/_config.js b/test/generator/css-space-in-attribute/_config.js new file mode 100644 index 0000000000..3b52fb71d4 --- /dev/null +++ b/test/generator/css-space-in-attribute/_config.js @@ -0,0 +1,11 @@ +export default { + test ( assert, component, target, window ) { + const [ control, test ] = target.querySelectorAll( 'p' ); + + assert.equal( window.getComputedStyle( control ).color, '' ); + assert.equal( window.getComputedStyle( control ).backgroundColor, '' ); + + assert.equal( window.getComputedStyle( test ).color, 'red' ); + assert.equal( window.getComputedStyle( test ).backgroundColor, 'black' ); + } +}; diff --git a/test/generator/css-space-in-attribute/main.html b/test/generator/css-space-in-attribute/main.html new file mode 100644 index 0000000000..211e42721a --- /dev/null +++ b/test/generator/css-space-in-attribute/main.html @@ -0,0 +1,10 @@ + +