update hydration tests

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

@ -1,2 +1,2 @@
<input bind:value='name'>
<p>Hello {{name}}!</p>
<p>Hello {name}!</p>

@ -1 +1 @@
<h1>Hello {{name}}!</h1>
<h1>Hello {name}!</h1>

@ -1 +1 @@
<h1>Hello {{name}}!</h1>
<h1>Hello {name}!</h1>

@ -1,5 +1,5 @@
<ul>
{{#each things.foo as foo}}
<li>{{foo}}</li>
{{/each}}
{#each things.foo as foo}
<li>{foo}</li>
{/each}
</ul>

@ -1,5 +1,5 @@
<ul>
{{#each things as thing}}
<li>{{thing}}</li>
{{/each}}
{#each things as thing}
<li>{thing}</li>
{/each}
</ul>

@ -1 +1 @@
<div class='{{class}}'></div>
<div class='{class}'></div>

@ -1,5 +1,5 @@
<button on:click='set({ clicked: true })'>click me</button>
{{#if clicked}}
{#if clicked}
<p>clicked!</p>
{{/if}}
{/if}

@ -1,9 +1,9 @@
<div>
{{#if foo}}
{#if foo}
<p>foo!</p>
{{/if}}
{/if}
{{#if bar}}
{#if bar}
<p>bar!</p>
{{/if}}
{/if}
</div>

@ -1,5 +1,5 @@
<p>before</p>
{{#if foo}}
{#if foo}
<p>foo!</p>
{{/if}}
{/if}
<p>after</p>

@ -1,7 +1,7 @@
{{#if foo}}
{#if foo}
<p>foo!</p>
{{/if}}
{/if}
{{#if bar}}
{#if bar}
<p>bar!</p>
{{/if}}
{/if}

@ -1,3 +1,3 @@
{{#if foo}}
{#if foo}
<p>foo!</p>
{{/if}}
{/if}
Loading…
Cancel
Save