mirror of https://github.com/sveltejs/svelte
12 lines
409 B
12 lines
409 B
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' );
|
|
}
|
|
};
|