Skip to content

Commit

Permalink
[test] Failing test for sveltejs#7386
Browse files Browse the repository at this point in the history
Also a minor variable rename because it bugged me.
  • Loading branch information
tivac committed Mar 24, 2022
1 parent 0eee98a commit 3c83b59
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
4 changes: 3 additions & 1 deletion test/runtime/samples/inline-style-directive/_config.js
@@ -1,6 +1,8 @@
export default {
html: `
<p style="color: red;"></p>
<div>
<p style="color: red;"></p>
</div>
`,

test({ assert, target, window }) {
Expand Down
4 changes: 3 additions & 1 deletion test/runtime/samples/inline-style-directive/main.svelte
Expand Up @@ -2,4 +2,6 @@
export let myColor = "red";
</script>

<p style:color={myColor} />
<div>
<p style:color={myColor} />
</div>
4 changes: 2 additions & 2 deletions test/runtime/samples/inline-style/_config.js
Expand Up @@ -4,9 +4,9 @@ export default {
`,

test({ assert, component, target, window }) {
const p = target.querySelector('div');
const div = target.querySelector('div');

const styles = window.getComputedStyle(p);
const styles = window.getComputedStyle(div);
assert.equal(styles.color, 'red');
}
};

0 comments on commit 3c83b59

Please sign in to comment.