-
Notifications
You must be signed in to change notification settings - Fork 794
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test(hydrate): add a regression test for hydrating SVG children
This adds a regression test for the issue reported in #4278, which doesn't currently occur on `main` but does occur in the branch associated with #2938 (a PR containing a bunch of changes for fixing bugs with slots). This regression test will give us a bit more safety as we go to add more slot behavior fixes in the future.
- Loading branch information
1 parent
a1a2740
commit 222eaac
Showing
4 changed files
with
53 additions
and
0 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
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
11 changes: 11 additions & 0 deletions
11
test/karma/test-prerender/src/components/hydrate-svg/hydrate-svg.tsx
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,11 @@ | ||
import { Component, h } from '@stencil/core'; | ||
|
||
@Component({ | ||
tag: 'test-svg', | ||
shadow: true, | ||
}) | ||
export class TestSvg { | ||
render() { | ||
return <svg></svg>; | ||
} | ||
} |
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