failing test for #288

pull/294/head
Rich Harris 8 years ago
parent b847886795
commit 96d7814bce

@ -0,0 +1,11 @@
<p class='foo bar'>red on black</p>
<style>
.foo {
color: red;
}
[class*=" bar"] {
background: black;
}
</style>

@ -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' );
}
};

@ -0,0 +1,10 @@
<p class='foo bar'>control</p>
<Widget/>
<script>
import Widget from './Widget.html';
export default {
components: { Widget }
};
</script>
Loading…
Cancel
Save