mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Enable additional (failing) portal tests
This commit is contained in:
1 parent
14f05bfa89
commit
8eb192b92f
3 files changed
+20
-11
No files matched your search
@@ -400,6 +400,19 @@ describe('ReactDOMFiber', () => {
|
||||
});
|
||||
|
||||
it('should keep track of namespace across portals (medium)', () => {
|
||||
assertNamespacesMatch(
|
||||
<svg {...expectSVG}>
|
||||
<image {...expectSVG} />
|
||||
{usePortal(
|
||||
<div {...expectHTML} />
|
||||
)}
|
||||
<image {...expectSVG} />
|
||||
{usePortal(
|
||||
<div {...expectHTML} />
|
||||
)}
|
||||
<image {...expectSVG} />
|
||||
</svg>
|
||||
);
|
||||
assertNamespacesMatch(
|
||||
<div {...expectHTML}>
|
||||
<math {...expectMath}>
|
||||
@@ -613,15 +626,9 @@ describe('ReactDOMFiber', () => {
|
||||
</div>
|
||||
)}
|
||||
</ErrorBoundary>
|
||||
{
|
||||
/*
|
||||
* TODO: enable. Currently this leads to stack overflow
|
||||
* but it might be a bug in error boundaries rather than SVG or portals.
|
||||
usePortal(
|
||||
<div {...expectHTML} />
|
||||
)
|
||||
*/
|
||||
}
|
||||
{usePortal(
|
||||
<div {...expectHTML} />
|
||||
)}
|
||||
</svg>
|
||||
);
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user