Skip to content

Commit 9415145

Browse files
committed
add tests
1 parent 84305cf commit 9415145

File tree

8 files changed

+30
-0
lines changed

8 files changed

+30
-0
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import { test } from '../../test';
2+
3+
// https://github.com/sveltejs/svelte/issues/15819
4+
export default test({
5+
expect_hydration_error: true
6+
});
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<p>start</p><p>cond</p><!---->
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<!--[--> <p>start</p><!--[--><p>cond</p><!--]--><!--]-->
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<script>
2+
const cond = true;
3+
</script>
4+
5+
<p>start</p>{#if cond}<p>cond</p>{/if}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import { test } from '../../test';
2+
3+
// https://github.com/sveltejs/svelte/issues/15819
4+
export default test({
5+
expect_hydration_error: true
6+
});
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<p>start</p> pre123 mid<!---->
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<!--[--><p>start</p>pre<a>123</a> <!--[-->mid<!--]--><!--]-->
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<script>
2+
let cond = true;
3+
</script>
4+
5+
<p>start</p>
6+
pre123
7+
{#if cond}
8+
mid
9+
{/if}

0 commit comments

Comments
 (0)