@@ -1257,7 +1257,7 @@ describe('DOMPluginEventSystem', () => {
1257
1257
act = ReactTestUtils . unstable_concurrentAct ;
1258
1258
} ) ;
1259
1259
1260
- // @gate experimental
1260
+ // @gate www
1261
1261
it ( 'can render correctly with the ReactDOMServer' , ( ) => {
1262
1262
const clickEvent = jest . fn ( ) ;
1263
1263
const setClick = ReactDOM . unstable_createEventHandle ( 'click' ) ;
@@ -1275,7 +1275,7 @@ describe('DOMPluginEventSystem', () => {
1275
1275
expect ( output ) . toBe ( `<div>Hello world</div>` ) ;
1276
1276
} ) ;
1277
1277
1278
- // @gate experimental
1278
+ // @gate www
1279
1279
it ( 'can render correctly with the ReactDOMServer hydration' , ( ) => {
1280
1280
const clickEvent = jest . fn ( ) ;
1281
1281
const spanRef = React . createRef ( ) ;
@@ -1301,7 +1301,7 @@ describe('DOMPluginEventSystem', () => {
1301
1301
expect ( clickEvent ) . toHaveBeenCalledTimes ( 1 ) ;
1302
1302
} ) ;
1303
1303
1304
- // @gate experimental
1304
+ // @gate www
1305
1305
it ( 'should correctly work for a basic "click" listener' , ( ) => {
1306
1306
let log = [ ] ;
1307
1307
const clickEvent = jest . fn ( event => {
@@ -1409,7 +1409,7 @@ describe('DOMPluginEventSystem', () => {
1409
1409
expect ( clickEvent2 ) . toBeCalledTimes ( 1 ) ;
1410
1410
} ) ;
1411
1411
1412
- // @gate experimental
1412
+ // @gate www
1413
1413
it ( 'should correctly work for setting and clearing a basic "click" listener' , ( ) => {
1414
1414
const clickEvent = jest . fn ( ) ;
1415
1415
const divRef = React . createRef ( ) ;
@@ -1450,7 +1450,7 @@ describe('DOMPluginEventSystem', () => {
1450
1450
expect ( clickEvent ) . toBeCalledTimes ( 0 ) ;
1451
1451
} ) ;
1452
1452
1453
- // @gate experimental
1453
+ // @gate www
1454
1454
it ( 'should handle the target being a text node' , ( ) => {
1455
1455
const clickEvent = jest . fn ( ) ;
1456
1456
const buttonRef = React . createRef ( ) ;
@@ -1472,7 +1472,7 @@ describe('DOMPluginEventSystem', () => {
1472
1472
expect ( clickEvent ) . toBeCalledTimes ( 1 ) ;
1473
1473
} ) ;
1474
1474
1475
- // @gate experimental
1475
+ // @gate www
1476
1476
it ( 'handle propagation of click events' , ( ) => {
1477
1477
const buttonRef = React . createRef ( ) ;
1478
1478
const divRef = React . createRef ( ) ;
@@ -1541,7 +1541,7 @@ describe('DOMPluginEventSystem', () => {
1541
1541
expect ( log [ 3 ] ) . toEqual ( [ 'bubble' , buttonElement ] ) ;
1542
1542
} ) ;
1543
1543
1544
- // @gate experimental
1544
+ // @gate www
1545
1545
it ( 'handle propagation of click events mixed with onClick events' , ( ) => {
1546
1546
const buttonRef = React . createRef ( ) ;
1547
1547
const divRef = React . createRef ( ) ;
@@ -1601,7 +1601,7 @@ describe('DOMPluginEventSystem', () => {
1601
1601
expect ( log [ 5 ] ) . toEqual ( [ 'bubble' , buttonElement ] ) ;
1602
1602
} ) ;
1603
1603
1604
- // @gate experimental
1604
+ // @gate www
1605
1605
it ( 'should correctly work for a basic "click" listener on the outer target' , ( ) => {
1606
1606
const log = [ ] ;
1607
1607
const clickEvent = jest . fn ( event => {
@@ -1666,7 +1666,7 @@ describe('DOMPluginEventSystem', () => {
1666
1666
expect ( clickEvent ) . toBeCalledTimes ( 2 ) ;
1667
1667
} ) ;
1668
1668
1669
- // @gate experimental
1669
+ // @gate www
1670
1670
it ( 'should correctly handle many nested target listeners' , ( ) => {
1671
1671
const buttonRef = React . createRef ( ) ;
1672
1672
const targetListener1 = jest . fn ( ) ;
@@ -1769,7 +1769,7 @@ describe('DOMPluginEventSystem', () => {
1769
1769
expect ( targetListener4 ) . toHaveBeenCalledTimes ( 2 ) ;
1770
1770
} ) ;
1771
1771
1772
- // @gate experimental
1772
+ // @gate www
1773
1773
it ( 'should correctly handle stopPropagation correctly for target events' , ( ) => {
1774
1774
const buttonRef = React . createRef ( ) ;
1775
1775
const divRef = React . createRef ( ) ;
@@ -1807,7 +1807,7 @@ describe('DOMPluginEventSystem', () => {
1807
1807
expect ( clickEvent ) . toHaveBeenCalledTimes ( 0 ) ;
1808
1808
} ) ;
1809
1809
1810
- // @gate experimental
1810
+ // @gate www
1811
1811
it ( 'should correctly handle stopPropagation correctly for many target events' , ( ) => {
1812
1812
const buttonRef = React . createRef ( ) ;
1813
1813
const targetListener1 = jest . fn ( e => e . stopPropagation ( ) ) ;
@@ -1860,7 +1860,7 @@ describe('DOMPluginEventSystem', () => {
1860
1860
expect ( targetListener4 ) . toHaveBeenCalledTimes ( 1 ) ;
1861
1861
} ) ;
1862
1862
1863
- // @gate experimental
1863
+ // @gate www
1864
1864
it ( 'should correctly handle stopPropagation for mixed capture/bubbling target listeners' , ( ) => {
1865
1865
const buttonRef = React . createRef ( ) ;
1866
1866
const targetListener1 = jest . fn ( e => e . stopPropagation ( ) ) ;
@@ -1917,7 +1917,7 @@ describe('DOMPluginEventSystem', () => {
1917
1917
expect ( targetListener4 ) . toHaveBeenCalledTimes ( 0 ) ;
1918
1918
} ) ;
1919
1919
1920
- // @gate experimental
1920
+ // @gate www
1921
1921
it ( 'should work with concurrent mode updates' , async ( ) => {
1922
1922
const log = [ ] ;
1923
1923
const ref = React . createRef ( ) ;
@@ -1970,7 +1970,7 @@ describe('DOMPluginEventSystem', () => {
1970
1970
expect ( log ) . toEqual ( [ { counter : 1 } ] ) ;
1971
1971
} ) ;
1972
1972
1973
- // @gate experimental
1973
+ // @gate www
1974
1974
it ( 'should correctly work for a basic "click" window listener' , ( ) => {
1975
1975
const log = [ ] ;
1976
1976
const clickEvent = jest . fn ( event => {
@@ -2021,7 +2021,7 @@ describe('DOMPluginEventSystem', () => {
2021
2021
expect ( clickEvent ) . toBeCalledTimes ( 2 ) ;
2022
2022
} ) ;
2023
2023
2024
- // @gate experimental
2024
+ // @gate www
2025
2025
it ( 'handle propagation of click events on the window' , ( ) => {
2026
2026
const buttonRef = React . createRef ( ) ;
2027
2027
const divRef = React . createRef ( ) ;
@@ -2101,7 +2101,7 @@ describe('DOMPluginEventSystem', () => {
2101
2101
expect ( log [ 5 ] ) . toEqual ( [ 'bubble' , window ] ) ;
2102
2102
} ) ;
2103
2103
2104
- // @gate experimental
2104
+ // @gate www
2105
2105
it ( 'should correctly handle stopPropagation for mixed listeners' , ( ) => {
2106
2106
const buttonRef = React . createRef ( ) ;
2107
2107
const rootListener1 = jest . fn ( e => e . stopPropagation ( ) ) ;
@@ -2152,7 +2152,7 @@ describe('DOMPluginEventSystem', () => {
2152
2152
expect ( rootListener2 ) . toHaveBeenCalledTimes ( 0 ) ;
2153
2153
} ) ;
2154
2154
2155
- // @gate experimental
2155
+ // @gate www
2156
2156
it ( 'should correctly handle stopPropagation for delegated listeners' , ( ) => {
2157
2157
const buttonRef = React . createRef ( ) ;
2158
2158
const rootListener1 = jest . fn ( e => e . stopPropagation ( ) ) ;
@@ -2198,7 +2198,7 @@ describe('DOMPluginEventSystem', () => {
2198
2198
expect ( rootListener4 ) . toHaveBeenCalledTimes ( 0 ) ;
2199
2199
} ) ;
2200
2200
2201
- // @gate experimental
2201
+ // @gate www
2202
2202
it ( 'handle propagation of click events on the window and document' , ( ) => {
2203
2203
const buttonRef = React . createRef ( ) ;
2204
2204
const divRef = React . createRef ( ) ;
@@ -2311,7 +2311,7 @@ describe('DOMPluginEventSystem', () => {
2311
2311
}
2312
2312
} ) ;
2313
2313
2314
- // @gate experimental
2314
+ // @gate www
2315
2315
it ( 'does not support custom user events' , ( ) => {
2316
2316
// With eager listeners, supporting custom events via this API doesn't make sense
2317
2317
// because we can't know a full list of them ahead of time. Let's check we throw
@@ -2323,7 +2323,7 @@ describe('DOMPluginEventSystem', () => {
2323
2323
) ;
2324
2324
} ) ;
2325
2325
2326
- // @gate experimental
2326
+ // @gate www
2327
2327
it ( 'beforeblur and afterblur are called after a focused element is unmounted' , ( ) => {
2328
2328
const log = [ ] ;
2329
2329
// We have to persist here because we want to read relatedTarget later.
@@ -2382,7 +2382,7 @@ describe('DOMPluginEventSystem', () => {
2382
2382
expect ( log ) . toEqual ( [ 'beforeblur' , 'afterblur' ] ) ;
2383
2383
} ) ;
2384
2384
2385
- // @gate experimental
2385
+ // @gate www
2386
2386
it ( 'beforeblur and afterblur are called after a nested focused element is unmounted' , ( ) => {
2387
2387
const log = [ ] ;
2388
2388
// We have to persist here because we want to read relatedTarget later.
@@ -2445,7 +2445,7 @@ describe('DOMPluginEventSystem', () => {
2445
2445
expect ( log ) . toEqual ( [ 'beforeblur' , 'afterblur' ] ) ;
2446
2446
} ) ;
2447
2447
2448
- // @gate experimental
2448
+ // @gate www
2449
2449
it ( 'beforeblur should skip handlers from a deleted subtree after the focused element is unmounted' , ( ) => {
2450
2450
const onBeforeBlur = jest . fn ( ) ;
2451
2451
const innerRef = React . createRef ( ) ;
@@ -2499,7 +2499,7 @@ describe('DOMPluginEventSystem', () => {
2499
2499
expect ( onBeforeBlur ) . toHaveBeenCalledTimes ( 1 ) ;
2500
2500
} ) ;
2501
2501
2502
- // @gate experimental
2502
+ // @gate www
2503
2503
it ( 'beforeblur and afterblur are called after a focused element is suspended' , ( ) => {
2504
2504
const log = [ ] ;
2505
2505
// We have to persist here because we want to read relatedTarget later.
@@ -2585,7 +2585,7 @@ describe('DOMPluginEventSystem', () => {
2585
2585
document . body . removeChild ( container2 ) ;
2586
2586
} ) ;
2587
2587
2588
- // @gate experimental
2588
+ // @gate www
2589
2589
it ( 'beforeblur should skip handlers from a deleted subtree after the focused element is suspended' , ( ) => {
2590
2590
const onBeforeBlur = jest . fn ( ) ;
2591
2591
const innerRef = React . createRef ( ) ;
@@ -2666,7 +2666,7 @@ describe('DOMPluginEventSystem', () => {
2666
2666
document . body . removeChild ( container2 ) ;
2667
2667
} ) ;
2668
2668
2669
- // @gate experimental
2669
+ // @gate www
2670
2670
it ( 'regression: does not fire beforeblur/afterblur if target is already hidden' , ( ) => {
2671
2671
const Suspense = React . Suspense ;
2672
2672
let suspend = false ;
@@ -2728,7 +2728,7 @@ describe('DOMPluginEventSystem', () => {
2728
2728
document . body . removeChild ( container2 ) ;
2729
2729
} ) ;
2730
2730
2731
- // @gate experimental
2731
+ // @gate www
2732
2732
it ( 'handle propagation of click events between disjointed comment roots' , ( ) => {
2733
2733
const buttonRef = React . createRef ( ) ;
2734
2734
const divRef = React . createRef ( ) ;
@@ -2799,7 +2799,7 @@ describe('DOMPluginEventSystem', () => {
2799
2799
expect ( log [ 5 ] ) . toEqual ( [ 'bubble' , buttonElement ] ) ;
2800
2800
} ) ;
2801
2801
2802
- // @gate experimental
2802
+ // @gate www
2803
2803
it ( 'propagates known createEventHandle events through portals without inner listeners' , ( ) => {
2804
2804
const buttonRef = React . createRef ( ) ;
2805
2805
const divRef = React . createRef ( ) ;
@@ -2870,7 +2870,7 @@ describe('DOMPluginEventSystem', () => {
2870
2870
ReactDOMServer = require ( 'react-dom/server' ) ;
2871
2871
} ) ;
2872
2872
2873
- // @gate experimental
2873
+ // @gate www
2874
2874
it ( 'handle propagation of click events on a scope' , ( ) => {
2875
2875
const buttonRef = React . createRef ( ) ;
2876
2876
const log = [ ] ;
@@ -2926,7 +2926,7 @@ describe('DOMPluginEventSystem', () => {
2926
2926
] ) ;
2927
2927
} ) ;
2928
2928
2929
- // @gate experimental
2929
+ // @gate www
2930
2930
it ( 'handle mixed propagation of click events on a scope' , ( ) => {
2931
2931
const buttonRef = React . createRef ( ) ;
2932
2932
const divRef = React . createRef ( ) ;
@@ -3017,7 +3017,7 @@ describe('DOMPluginEventSystem', () => {
3017
3017
] ) ;
3018
3018
} ) ;
3019
3019
3020
- // @gate experimental
3020
+ // @gate www
3021
3021
it ( 'should not handle the target being a dangling text node within a scope' , ( ) => {
3022
3022
const clickEvent = jest . fn ( ) ;
3023
3023
const buttonRef = React . createRef ( ) ;
@@ -3048,7 +3048,7 @@ describe('DOMPluginEventSystem', () => {
3048
3048
expect ( clickEvent ) . toBeCalledTimes ( 0 ) ;
3049
3049
} ) ;
3050
3050
3051
- // @gate experimental
3051
+ // @gate www
3052
3052
it ( 'handle stopPropagation (inner) correctly between scopes' , ( ) => {
3053
3053
const buttonRef = React . createRef ( ) ;
3054
3054
const outerOnClick = jest . fn ( ) ;
@@ -3090,7 +3090,7 @@ describe('DOMPluginEventSystem', () => {
3090
3090
expect ( outerOnClick ) . toHaveBeenCalledTimes ( 0 ) ;
3091
3091
} ) ;
3092
3092
3093
- // @gate experimental
3093
+ // @gate www
3094
3094
it ( 'handle stopPropagation (outer) correctly between scopes' , ( ) => {
3095
3095
const buttonRef = React . createRef ( ) ;
3096
3096
const outerOnClick = jest . fn ( e => e . stopPropagation ( ) ) ;
@@ -3132,7 +3132,7 @@ describe('DOMPluginEventSystem', () => {
3132
3132
expect ( outerOnClick ) . toHaveBeenCalledTimes ( 1 ) ;
3133
3133
} ) ;
3134
3134
3135
- // @gate experimental
3135
+ // @gate www
3136
3136
it ( 'handle stopPropagation (inner and outer) correctly between scopes' , ( ) => {
3137
3137
const buttonRef = React . createRef ( ) ;
3138
3138
const onClick = jest . fn ( e => e . stopPropagation ( ) ) ;
@@ -3172,7 +3172,7 @@ describe('DOMPluginEventSystem', () => {
3172
3172
expect ( onClick ) . toHaveBeenCalledTimes ( 1 ) ;
3173
3173
} ) ;
3174
3174
3175
- // @gate experimental
3175
+ // @gate www
3176
3176
it ( 'should be able to register handlers for events affected by the intervention' , ( ) => {
3177
3177
const rootContainer = document . createElement ( 'div' ) ;
3178
3178
container . appendChild ( rootContainer ) ;
0 commit comments