Skip to content

Commit 96d7814

Browse files
committed
failing test for #288
1 parent b847886 commit 96d7814

File tree

3 files changed

+32
-0
lines changed

3 files changed

+32
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<p class='foo bar'>red on black</p>
2+
3+
<style>
4+
.foo {
5+
color: red;
6+
}
7+
8+
[class*=" bar"] {
9+
background: black;
10+
}
11+
</style>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
export default {
2+
test ( assert, component, target, window ) {
3+
const [ control, test ] = target.querySelectorAll( 'p' );
4+
5+
assert.equal( window.getComputedStyle( control ).color, '' );
6+
assert.equal( window.getComputedStyle( control ).backgroundColor, '' );
7+
8+
assert.equal( window.getComputedStyle( test ).color, 'red' );
9+
assert.equal( window.getComputedStyle( test ).backgroundColor, 'black' );
10+
}
11+
};
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<p class='foo bar'>control</p>
2+
<Widget/>
3+
4+
<script>
5+
import Widget from './Widget.html';
6+
7+
export default {
8+
components: { Widget }
9+
};
10+
</script>

0 commit comments

Comments
 (0)