update hydration tests

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

@ -1,2 +1,2 @@
<input bind:value='name'> <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> <ul>
{{#each things.foo as foo}} {#each things.foo as foo}
<li>{{foo}}</li> <li>{foo}</li>
{{/each}} {/each}
</ul> </ul>

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

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

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

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

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

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

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