update css tests

pull/1348/head
Rich Harris 6 years ago
parent 39d0b862d4
commit 40e6b4fc11

@ -3,7 +3,7 @@
</span>
<span class='foo'>
<span class='bar'>{{dynamic}}</span>
<span class='bar'>{dynamic}</span>
</span>
<style>

@ -1,5 +1,5 @@
<div>
<p data-foo='{{dynamic}}'>this is styled</p>
<p data-foo='{dynamic}'>this is styled</p>
<p data-foo='baz'>this is unstyled</p>
</div>

@ -1,4 +1,4 @@
<p class='{{unknown}}'>this is styled</p>
<p class='{unknown}'>this is styled</p>
<p class='bar'>this is unstyled</p>
<style>

@ -1,23 +0,0 @@
export default {
cascade: false,
warnings: [{
code: 'missing-component',
message: 'P component is not defined',
loc: {
line: 2,
column: 1
},
end: {
line: 2,
column: 22
},
pos: 7,
frame: `
1: <div>
2: <P>this is styled</P>
^
3: </div>
4:`
}]
};

@ -1 +0,0 @@
<div><p class="svelte-xyz">this is styled</p></div>

@ -1,9 +0,0 @@
<div>
<P>this is styled</P>
</div>
<style>
p {
color: red;
}
</style>

@ -12,7 +12,7 @@ export default {
column: 1,
line: 12
},
pos: 174,
pos: 169,
frame: `
10: }
11:

@ -1,8 +1,8 @@
{{#if active}}
{#if active}
<button ref:button class='active'>deactivate</button>
{{else}}
{:else}
<button ref:button>activate</button>
{{/if}}
{/if}
<style>
ref:button.active {

@ -1,4 +1,4 @@
<div {{...props}} >
<div {...props} >
Big red Comic Sans
</div>

@ -13,7 +13,7 @@ export default {
line: 12,
column: 1
},
pos: 125,
pos: 123,
frame: `
10: }
11:

@ -1,4 +1,4 @@
<div class='{{active ? "active": "inactive"}}'></div>
<div class='{active ? "active": "inactive"}'></div>
<style>
.active {

Loading…
Cancel
Save