-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2ea4c02
commit af3d03e
Showing
8 changed files
with
57 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 0 additions & 3 deletions
3
packages/svelte/tests/hydration/samples/pre-first-node-backslash-n/_config.js
This file was deleted.
Oops, something went wrong.
2 changes: 0 additions & 2 deletions
2
packages/svelte/tests/hydration/samples/pre-first-node-backslash-n/_expected.html
This file was deleted.
Oops, something went wrong.
7 changes: 0 additions & 7 deletions
7
packages/svelte/tests/hydration/samples/pre-first-node-backslash-n/main.svelte
This file was deleted.
Oops, something went wrong.
5 changes: 5 additions & 0 deletions
5
packages/svelte/tests/hydration/samples/pre-first-node-newline/_config.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import { test } from '../../test'; | ||
|
||
// A note about _expected.html: It is different from body.html because we're | ||
// testing against target.innerHTML which already removed the redundant first newline | ||
export default test({}); |
7 changes: 7 additions & 0 deletions
7
packages/svelte/tests/hydration/samples/pre-first-node-newline/_expected.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<!--[--><pre>static content no line</pre> <pre> static content ignored line | ||
</pre> <pre> | ||
static content relevant line | ||
</pre> <pre><div><span></span></div> | ||
</pre> <pre> | ||
<div><span></span></div> | ||
</pre><!--]--> |
23 changes: 23 additions & 0 deletions
23
packages/svelte/tests/hydration/samples/pre-first-node-newline/main.svelte
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<script> | ||
let name = $state(''); | ||
</script> | ||
|
||
<pre>static content no line</pre> | ||
|
||
<pre> | ||
static content ignored line | ||
</pre> | ||
|
||
<pre> | ||
|
||
static content relevant line | ||
</pre> | ||
|
||
<pre> | ||
<div><span>{name}</span></div> | ||
</pre> | ||
|
||
<pre> | ||
|
||
<div><span>{name}</span></div> | ||
</pre> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters