Skip to content

Commit 236af6c

Browse files
committed
update comments on test
1 parent 0233d1b commit 236af6c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

packages/react-dom/src/__tests__/ReactDOMServerSelectiveHydration-test.internal.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -813,7 +813,6 @@ describe('ReactDOMServerSelectiveHydration', () => {
813813
'C',
814814
// Mouse out events aren't replayed
815815
// 'Mouse Out Capture B',
816-
// stopPropagation stops these
817816
// 'Mouse Out B',
818817
'Mouse Over Capture Parent',
819818
'Mouse Over Capture C',
@@ -834,14 +833,17 @@ describe('ReactDOMServerSelectiveHydration', () => {
834833
'Clicked D',
835834
'B', // Ideally this should be later.
836835
'C',
836+
// Capture phase isn't replayed
837+
// Mouseout isn't replayed
837838
'Mouse Over C',
838839
'Mouse Enter C',
839840
'A',
840841
]);
841842
}
842843

844+
// This test shows existing quirk where stopPropagation on mouseout
845+
// prevents mouseEnter from firing
843846
dispatchMouseHoverEvent(spanC, spanB);
844-
845847
expect(Scheduler).toHaveYielded([
846848
'Mouse Out Capture B',
847849
// stopPropagation stops these

0 commit comments

Comments
 (0)