Enable additional (failing) portal tests

This commit is contained in:
Dan Abramov committed 2016-12-09 16:07:37 +00:00
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>
);
});