Skip to content

Commit

Permalink
update comments on test
Browse files Browse the repository at this point in the history
  • Loading branch information
salazarm committed Nov 8, 2021
1 parent 0233d1b commit 236af6c
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -813,7 +813,6 @@ describe('ReactDOMServerSelectiveHydration', () => {
'C',
// Mouse out events aren't replayed
// 'Mouse Out Capture B',
// stopPropagation stops these
// 'Mouse Out B',
'Mouse Over Capture Parent',
'Mouse Over Capture C',
Expand All @@ -834,14 +833,17 @@ describe('ReactDOMServerSelectiveHydration', () => {
'Clicked D',
'B', // Ideally this should be later.
'C',
// Capture phase isn't replayed
// Mouseout isn't replayed
'Mouse Over C',
'Mouse Enter C',
'A',
]);
}

// This test shows existing quirk where stopPropagation on mouseout
// prevents mouseEnter from firing
dispatchMouseHoverEvent(spanC, spanB);

expect(Scheduler).toHaveYielded([
'Mouse Out Capture B',
// stopPropagation stops these
Expand Down

0 comments on commit 236af6c

Please sign in to comment.