@@ -56,7 +56,7 @@ describe('ReactDOMTestSelectors', () => {
56
56
} ) ;
57
57
58
58
describe ( 'findAllNodes' , ( ) => {
59
- // @gate www
59
+ // @gate www || experimental
60
60
it ( 'should support searching from the document root' , ( ) => {
61
61
function Example ( ) {
62
62
return (
@@ -76,7 +76,7 @@ describe('ReactDOMTestSelectors', () => {
76
76
expect ( matches [ 0 ] . id ) . toBe ( 'match' ) ;
77
77
} ) ;
78
78
79
- // @gate www
79
+ // @gate www || experimental
80
80
it ( 'should support searching from the container' , ( ) => {
81
81
function Example ( ) {
82
82
return (
@@ -96,7 +96,7 @@ describe('ReactDOMTestSelectors', () => {
96
96
expect ( matches [ 0 ] . id ) . toBe ( 'match' ) ;
97
97
} ) ;
98
98
99
- // @gate www
99
+ // @gate www || experimental
100
100
it ( 'should support searching from a previous match if the match had a data-testname' , ( ) => {
101
101
function Outer ( ) {
102
102
return (
@@ -127,7 +127,7 @@ describe('ReactDOMTestSelectors', () => {
127
127
expect ( matches [ 0 ] . id ) . toBe ( 'inner' ) ;
128
128
} ) ;
129
129
130
- // @gate www
130
+ // @gate www || experimental
131
131
it ( 'should not support searching from a previous match if the match did not have a data-testname' , ( ) => {
132
132
function Outer ( ) {
133
133
return (
@@ -157,7 +157,7 @@ describe('ReactDOMTestSelectors', () => {
157
157
) ;
158
158
} ) ;
159
159
160
- // @gate www
160
+ // @gate www || experimental
161
161
it ( 'should support an multiple component types in the selector array' , ( ) => {
162
162
function Outer ( ) {
163
163
return (
@@ -211,7 +211,7 @@ describe('ReactDOMTestSelectors', () => {
211
211
expect ( matches [ 0 ] . id ) . toBe ( 'match3' ) ;
212
212
} ) ;
213
213
214
- // @gate www
214
+ // @gate www || experimental
215
215
it ( 'should find multiple matches' , ( ) => {
216
216
function Example1 ( ) {
217
217
return (
@@ -249,7 +249,7 @@ describe('ReactDOMTestSelectors', () => {
249
249
] ) ;
250
250
} ) ;
251
251
252
- // @gate www
252
+ // @gate www || experimental
253
253
it ( 'should ignore nested matches' , ( ) => {
254
254
function Example ( ) {
255
255
return (
@@ -269,7 +269,7 @@ describe('ReactDOMTestSelectors', () => {
269
269
expect ( matches [ 0 ] . id ) . toEqual ( 'match1' ) ;
270
270
} ) ;
271
271
272
- // @gate www
272
+ // @gate www || experimental
273
273
it ( 'should enforce the specific order of selectors' , ( ) => {
274
274
function Outer ( ) {
275
275
return (
@@ -294,7 +294,7 @@ describe('ReactDOMTestSelectors', () => {
294
294
) . toHaveLength ( 0 ) ;
295
295
} ) ;
296
296
297
- // @gate www
297
+ // @gate www || experimental
298
298
it ( 'should not search within hidden subtrees' , ( ) => {
299
299
const ref1 = React . createRef ( null ) ;
300
300
const ref2 = React . createRef ( null ) ;
@@ -324,7 +324,7 @@ describe('ReactDOMTestSelectors', () => {
324
324
expect ( matches [ 0 ] ) . toBe ( ref2 . current ) ;
325
325
} ) ;
326
326
327
- // @gate www
327
+ // @gate www || experimental
328
328
it ( 'should support filtering by display text' , ( ) => {
329
329
function Example ( ) {
330
330
return (
@@ -347,7 +347,7 @@ describe('ReactDOMTestSelectors', () => {
347
347
expect ( matches [ 0 ] . id ) . toBe ( 'match' ) ;
348
348
} ) ;
349
349
350
- // @gate www
350
+ // @gate www || experimental
351
351
it ( 'should support filtering by explicit accessibiliy role' , ( ) => {
352
352
function Example ( ) {
353
353
return (
@@ -372,7 +372,7 @@ describe('ReactDOMTestSelectors', () => {
372
372
expect ( matches [ 0 ] . id ) . toBe ( 'match' ) ;
373
373
} ) ;
374
374
375
- // @gate www
375
+ // @gate www || experimental
376
376
it ( 'should support filtering by explicit secondary accessibiliy role' , ( ) => {
377
377
const ref = React . createRef ( ) ;
378
378
@@ -397,7 +397,7 @@ describe('ReactDOMTestSelectors', () => {
397
397
expect ( matches [ 0 ] ) . toBe ( ref . current ) ;
398
398
} ) ;
399
399
400
- // @gate www
400
+ // @gate www || experimental
401
401
it ( 'should support filtering by implicit accessibiliy role' , ( ) => {
402
402
function Example ( ) {
403
403
return (
@@ -420,7 +420,7 @@ describe('ReactDOMTestSelectors', () => {
420
420
expect ( matches [ 0 ] . id ) . toBe ( 'match' ) ;
421
421
} ) ;
422
422
423
- // @gate www
423
+ // @gate www || experimental
424
424
it ( 'should support filtering by implicit accessibiliy role with attributes qualifications' , ( ) => {
425
425
function Example ( ) {
426
426
return (
@@ -443,7 +443,7 @@ describe('ReactDOMTestSelectors', () => {
443
443
expect ( matches [ 0 ] . id ) . toBe ( 'match' ) ;
444
444
} ) ;
445
445
446
- // @gate www
446
+ // @gate www || experimental
447
447
it ( 'should support searching ahead with the has() selector' , ( ) => {
448
448
function Example ( ) {
449
449
return (
@@ -479,14 +479,14 @@ describe('ReactDOMTestSelectors', () => {
479
479
expect ( matches [ 0 ] . id ) . toBe ( 'match' ) ;
480
480
} ) ;
481
481
482
- // @gate www
482
+ // @gate www || experimental
483
483
it ( 'should throw if no container can be found' , ( ) => {
484
484
expect ( ( ) => findAllNodes ( document . body , [ ] ) ) . toThrow (
485
485
'Could not find React container within specified host subtree.' ,
486
486
) ;
487
487
} ) ;
488
488
489
- // @gate www
489
+ // @gate www || experimental
490
490
it ( 'should throw if an invalid host root is specified' , ( ) => {
491
491
const ref = React . createRef ( ) ;
492
492
function Example ( ) {
@@ -502,7 +502,7 @@ describe('ReactDOMTestSelectors', () => {
502
502
} ) ;
503
503
504
504
describe ( 'getFindAllNodesFailureDescription' , ( ) => {
505
- // @gate www
505
+ // @gate www || experimental
506
506
it ( 'should describe findAllNodes failures caused by the component type selector' , ( ) => {
507
507
function Outer ( ) {
508
508
return < Middle /> ;
@@ -532,7 +532,7 @@ No matching component was found for:
532
532
) ;
533
533
} ) ;
534
534
535
- // @gate www
535
+ // @gate www || experimental
536
536
it ( 'should return null if findAllNodes was able to find a match' , ( ) => {
537
537
function Example ( ) {
538
538
return (
@@ -568,7 +568,7 @@ No matching component was found for:
568
568
} ;
569
569
}
570
570
571
- // @gate www
571
+ // @gate www || experimental
572
572
it ( 'should return a single rect for a component that returns a single root host element' , ( ) => {
573
573
const ref = React . createRef ( ) ;
574
574
@@ -602,7 +602,7 @@ No matching component was found for:
602
602
} ) ;
603
603
} ) ;
604
604
605
- // @gate www
605
+ // @gate www || experimental
606
606
it ( 'should return a multiple rects for multiple matches' , ( ) => {
607
607
const outerRef = React . createRef ( ) ;
608
608
const innerRef = React . createRef ( ) ;
@@ -652,7 +652,7 @@ No matching component was found for:
652
652
} ) ;
653
653
} ) ;
654
654
655
- // @gate www
655
+ // @gate www || experimental
656
656
it ( 'should return a multiple rects for single match that returns a fragment' , ( ) => {
657
657
const refA = React . createRef ( ) ;
658
658
const refB = React . createRef ( ) ;
@@ -702,7 +702,7 @@ No matching component was found for:
702
702
} ) ;
703
703
} ) ;
704
704
705
- // @gate www
705
+ // @gate www || experimental
706
706
it ( 'should merge overlapping rects' , ( ) => {
707
707
const refA = React . createRef ( ) ;
708
708
const refB = React . createRef ( ) ;
@@ -757,7 +757,7 @@ No matching component was found for:
757
757
} ) ;
758
758
} ) ;
759
759
760
- // @gate www
760
+ // @gate www || experimental
761
761
it ( 'should merge some types of adjacent rects (if they are the same in one dimension)' , ( ) => {
762
762
const refA = React . createRef ( ) ;
763
763
const refB = React . createRef ( ) ;
@@ -857,7 +857,7 @@ No matching component was found for:
857
857
} ) ;
858
858
} ) ;
859
859
860
- // @gate www
860
+ // @gate www || experimental
861
861
it ( 'should not search within hidden subtrees' , ( ) => {
862
862
const refA = React . createRef ( ) ;
863
863
const refB = React . createRef ( ) ;
@@ -914,7 +914,7 @@ No matching component was found for:
914
914
} ) ;
915
915
916
916
describe ( 'focusWithin' , ( ) => {
917
- // @gate www
917
+ // @gate www || experimental
918
918
it ( 'should return false if the specified component path has no matches' , ( ) => {
919
919
function Example ( ) {
920
920
return < Child /> ;
@@ -935,7 +935,7 @@ No matching component was found for:
935
935
expect ( didFocus ) . toBe ( false ) ;
936
936
} ) ;
937
937
938
- // @gate www
938
+ // @gate www || experimental
939
939
it ( 'should return false if there are no focusable elements within the matched subtree' , ( ) => {
940
940
function Example ( ) {
941
941
return < Child /> ;
@@ -953,7 +953,7 @@ No matching component was found for:
953
953
expect ( didFocus ) . toBe ( false ) ;
954
954
} ) ;
955
955
956
- // @gate www
956
+ // @gate www || experimental
957
957
it ( 'should return false if the only focusable elements are disabled' , ( ) => {
958
958
function Example ( ) {
959
959
return (
@@ -971,7 +971,7 @@ No matching component was found for:
971
971
expect ( didFocus ) . toBe ( false ) ;
972
972
} ) ;
973
973
974
- // @gate www
974
+ // @gate www || experimental
975
975
it ( 'should return false if the only focusable elements are hidden' , ( ) => {
976
976
function Example ( ) {
977
977
return < button hidden = { true } > not clickable</ button > ;
@@ -985,7 +985,7 @@ No matching component was found for:
985
985
expect ( didFocus ) . toBe ( false ) ;
986
986
} ) ;
987
987
988
- // @gate www
988
+ // @gate www || experimental
989
989
it ( 'should successfully focus the first focusable element within the tree' , ( ) => {
990
990
const secondRef = React . createRef ( null ) ;
991
991
@@ -1040,7 +1040,7 @@ No matching component was found for:
1040
1040
expect ( handleThirdFocus ) . not . toHaveBeenCalled ( ) ;
1041
1041
} ) ;
1042
1042
1043
- // @gate www
1043
+ // @gate www || experimental
1044
1044
it ( 'should successfully focus the first focusable element even if application logic interferes' , ( ) => {
1045
1045
const ref = React . createRef ( null ) ;
1046
1046
@@ -1070,7 +1070,7 @@ No matching component was found for:
1070
1070
expect ( handleFocus ) . toHaveBeenCalledTimes ( 1 ) ;
1071
1071
} ) ;
1072
1072
1073
- // @gate www
1073
+ // @gate www || experimental
1074
1074
it ( 'should not focus within hidden subtrees' , ( ) => {
1075
1075
const secondRef = React . createRef ( null ) ;
1076
1076
@@ -1194,7 +1194,7 @@ No matching component was found for:
1194
1194
window . IntersectionObserver = IntersectionObserver ;
1195
1195
} ) ;
1196
1196
1197
- // @gate www
1197
+ // @gate www || experimental
1198
1198
it ( 'should notify a listener when the underlying instance intersection changes' , ( ) => {
1199
1199
const ref = React . createRef ( null ) ;
1200
1200
@@ -1231,7 +1231,7 @@ No matching component was found for:
1231
1231
expect ( handleVisibilityChange ) . toHaveBeenCalledWith ( [ { rect, ratio : 0.5 } ] ) ;
1232
1232
} ) ;
1233
1233
1234
- // @gate www
1234
+ // @gate www || experimental
1235
1235
it ( 'should notify a listener of multiple targets when the underlying instance intersection changes' , ( ) => {
1236
1236
const ref1 = React . createRef ( null ) ;
1237
1237
const ref2 = React . createRef ( null ) ;
@@ -1308,7 +1308,7 @@ No matching component was found for:
1308
1308
] ) ;
1309
1309
} ) ;
1310
1310
1311
- // @gate www
1311
+ // @gate www || experimental
1312
1312
it ( 'should stop listening when its disconnected' , ( ) => {
1313
1313
const ref = React . createRef ( null ) ;
1314
1314
@@ -1343,7 +1343,7 @@ No matching component was found for:
1343
1343
} ) ;
1344
1344
1345
1345
// This test reuires gating because it relies on the __DEV__ only commit hook to work.
1346
- // @gate www && __DEV__
1346
+ // @gate www || experimental && __DEV__
1347
1347
it ( 'should update which targets its listening to after a commit' , ( ) => {
1348
1348
const ref1 = React . createRef ( null ) ;
1349
1349
const ref2 = React . createRef ( null ) ;
@@ -1422,7 +1422,7 @@ No matching component was found for:
1422
1422
] ) ;
1423
1423
} ) ;
1424
1424
1425
- // @gate www
1425
+ // @gate www || experimental
1426
1426
it ( 'should not observe components within hidden subtrees' , ( ) => {
1427
1427
const ref1 = React . createRef ( null ) ;
1428
1428
const ref2 = React . createRef ( null ) ;
0 commit comments