@@ -126,7 +126,6 @@ describe('Timeline profiler', () => {
126
126
setPerformanceMock ( null ) ;
127
127
} ) ;
128
128
129
- // @reactVersion >=18.0
130
129
it ( 'should mark sync render without suspends or state updates' , ( ) => {
131
130
renderHelper ( < div /> ) ;
132
131
@@ -148,7 +147,6 @@ describe('Timeline profiler', () => {
148
147
` ) ;
149
148
} ) ;
150
149
151
- // @reactVersion >=18.0
152
150
it ( 'should mark concurrent render without suspends or state updates' , ( ) => {
153
151
renderRootHelper ( < div /> ) ;
154
152
@@ -179,7 +177,6 @@ describe('Timeline profiler', () => {
179
177
` ) ;
180
178
} ) ;
181
179
182
- // @reactVersion >=18.0
183
180
it ( 'should mark render yields' , async ( ) => {
184
181
function Bar ( ) {
185
182
Scheduler . unstable_yieldValue ( 'Bar' ) ;
@@ -209,7 +206,6 @@ describe('Timeline profiler', () => {
209
206
` ) ;
210
207
} ) ;
211
208
212
- // @reactVersion >=18.0
213
209
it ( 'should mark sync render with suspense that resolves' , async ( ) => {
214
210
const fakeSuspensePromise = Promise . resolve ( true ) ;
215
211
function Example ( ) {
@@ -252,7 +248,6 @@ describe('Timeline profiler', () => {
252
248
` ) ;
253
249
} ) ;
254
250
255
- // @reactVersion >=18.0
256
251
it ( 'should mark sync render with suspense that rejects' , async ( ) => {
257
252
const fakeSuspensePromise = Promise . reject ( new Error ( 'error' ) ) ;
258
253
function Example ( ) {
@@ -291,7 +286,6 @@ describe('Timeline profiler', () => {
291
286
expect ( clearedMarks ) . toContain ( `--suspense-rejected-0-Example` ) ;
292
287
} ) ;
293
288
294
- // @reactVersion >=18.0
295
289
it ( 'should mark concurrent render with suspense that resolves' , async ( ) => {
296
290
const fakeSuspensePromise = Promise . resolve ( true ) ;
297
291
function Example ( ) {
@@ -343,7 +337,6 @@ describe('Timeline profiler', () => {
343
337
` ) ;
344
338
} ) ;
345
339
346
- // @reactVersion >=18.0
347
340
it ( 'should mark concurrent render with suspense that rejects' , async ( ) => {
348
341
const fakeSuspensePromise = Promise . reject ( new Error ( 'error' ) ) ;
349
342
function Example ( ) {
@@ -395,7 +388,6 @@ describe('Timeline profiler', () => {
395
388
` ) ;
396
389
} ) ;
397
390
398
- // @reactVersion >=18.0
399
391
it ( 'should mark cascading class component state updates' , ( ) => {
400
392
class Example extends React . Component {
401
393
state = { didMount : false } ;
@@ -450,7 +442,6 @@ describe('Timeline profiler', () => {
450
442
` ) ;
451
443
} ) ;
452
444
453
- // @reactVersion >=18.0
454
445
it ( 'should mark cascading class component force updates' , ( ) => {
455
446
class Example extends React . Component {
456
447
componentDidMount ( ) {
@@ -504,7 +495,6 @@ describe('Timeline profiler', () => {
504
495
` ) ;
505
496
} ) ;
506
497
507
- // @reactVersion >=18.0
508
498
it ( 'should mark render phase state updates for class component' , ( ) => {
509
499
class Example extends React . Component {
510
500
state = { didRender : false } ;
@@ -558,7 +548,6 @@ describe('Timeline profiler', () => {
558
548
` ) ;
559
549
} ) ;
560
550
561
- // @reactVersion >=18.0
562
551
it ( 'should mark render phase force updates for class component' , ( ) => {
563
552
let forced = false ;
564
553
class Example extends React . Component {
@@ -613,7 +602,6 @@ describe('Timeline profiler', () => {
613
602
` ) ;
614
603
} ) ;
615
604
616
- // @reactVersion >=18.0
617
605
it ( 'should mark cascading layout updates' , ( ) => {
618
606
function Example ( ) {
619
607
const [ didMount , setDidMount ] = React . useState ( false ) ;
@@ -668,7 +656,6 @@ describe('Timeline profiler', () => {
668
656
` ) ;
669
657
} ) ;
670
658
671
- // @reactVersion >=18.0
672
659
it ( 'should mark cascading passive updates' , ( ) => {
673
660
function Example ( ) {
674
661
const [ didMount , setDidMount ] = React . useState ( false ) ;
@@ -718,7 +705,6 @@ describe('Timeline profiler', () => {
718
705
` ) ;
719
706
} ) ;
720
707
721
- // @reactVersion >=18.0
722
708
it ( 'should mark render phase updates' , ( ) => {
723
709
function Example ( ) {
724
710
const [ didRender , setDidRender ] = React . useState ( false ) ;
@@ -753,7 +739,6 @@ describe('Timeline profiler', () => {
753
739
` ) ;
754
740
} ) ;
755
741
756
- // @reactVersion >=18.0
757
742
it ( 'should mark sync render that throws' , async ( ) => {
758
743
spyOn ( console , 'error' ) ;
759
744
@@ -816,7 +801,6 @@ describe('Timeline profiler', () => {
816
801
` ) ;
817
802
} ) ;
818
803
819
- // @reactVersion >=18.0
820
804
it ( 'should mark concurrent render that throws' , async ( ) => {
821
805
spyOn ( console , 'error' ) ;
822
806
@@ -897,7 +881,6 @@ describe('Timeline profiler', () => {
897
881
` ) ;
898
882
} ) ;
899
883
900
- // @reactVersion >=18.0
901
884
it ( 'should mark passive and layout effects' , async ( ) => {
902
885
function ComponentWithEffects ( ) {
903
886
React . useLayoutEffect ( ( ) => {
@@ -1034,7 +1017,6 @@ describe('Timeline profiler', () => {
1034
1017
} ) ;
1035
1018
1036
1019
describe ( 'lane labels' , ( ) => {
1037
- // @reactVersion >=18.0
1038
1020
it ( 'regression test SyncLane' , ( ) => {
1039
1021
renderHelper ( < div /> ) ;
1040
1022
@@ -1056,7 +1038,6 @@ describe('Timeline profiler', () => {
1056
1038
` ) ;
1057
1039
} ) ;
1058
1040
1059
- // @reactVersion >=18.0
1060
1041
it ( 'regression test DefaultLane' , ( ) => {
1061
1042
renderRootHelper ( < div /> ) ;
1062
1043
expect ( clearedMarks ) . toMatchInlineSnapshot ( `
@@ -1066,7 +1047,6 @@ describe('Timeline profiler', () => {
1066
1047
` ) ;
1067
1048
} ) ;
1068
1049
1069
- // @reactVersion >=18.0
1070
1050
it ( 'regression test InputDiscreteLane' , async ( ) => {
1071
1051
const targetRef = React . createRef ( null ) ;
1072
1052
@@ -1108,7 +1088,6 @@ describe('Timeline profiler', () => {
1108
1088
` ) ;
1109
1089
} ) ;
1110
1090
1111
- // @reactVersion >=18.0
1112
1091
it ( 'regression test InputContinuousLane' , async ( ) => {
1113
1092
const targetRef = React . createRef ( null ) ;
1114
1093
@@ -1205,7 +1184,6 @@ describe('Timeline profiler', () => {
1205
1184
utils . act ( ( ) => store . profilerStore . startProfiling ( ) ) ;
1206
1185
} ) ;
1207
1186
1208
- // @reactVersion >=18.0
1209
1187
it ( 'should mark sync render without suspends or state updates' , ( ) => {
1210
1188
renderHelper ( < div /> ) ;
1211
1189
@@ -1222,7 +1200,6 @@ describe('Timeline profiler', () => {
1222
1200
` ) ;
1223
1201
} ) ;
1224
1202
1225
- // @reactVersion >=18.0
1226
1203
it ( 'should mark concurrent render without suspends or state updates' , ( ) => {
1227
1204
utils . act ( ( ) => renderRootHelper ( < div /> ) ) ;
1228
1205
@@ -1239,7 +1216,6 @@ describe('Timeline profiler', () => {
1239
1216
` ) ;
1240
1217
} ) ;
1241
1218
1242
- // @reactVersion >=18.0
1243
1219
it ( 'should mark concurrent render without suspends or state updates' , ( ) => {
1244
1220
let updaterFn ;
1245
1221
@@ -1586,7 +1562,6 @@ describe('Timeline profiler', () => {
1586
1562
expect ( timelineData . componentMeasures ) . toHaveLength ( 2 ) ;
1587
1563
} ) ;
1588
1564
1589
- // @reactVersion >=18.0
1590
1565
it ( 'should mark cascading class component state updates' , ( ) => {
1591
1566
class Example extends React . Component {
1592
1567
state = { didMount : false } ;
@@ -1647,7 +1622,6 @@ describe('Timeline profiler', () => {
1647
1622
` ) ;
1648
1623
} ) ;
1649
1624
1650
- // @reactVersion >=18.0
1651
1625
it ( 'should mark cascading class component force updates' , ( ) => {
1652
1626
let forced = false ;
1653
1627
class Example extends React . Component {
@@ -1705,7 +1679,6 @@ describe('Timeline profiler', () => {
1705
1679
` ) ;
1706
1680
} ) ;
1707
1681
1708
- // @reactVersion >=18.0
1709
1682
it ( 'should mark render phase state updates for class component' , ( ) => {
1710
1683
class Example extends React . Component {
1711
1684
state = { didRender : false } ;
@@ -1776,7 +1749,6 @@ describe('Timeline profiler', () => {
1776
1749
` ) ;
1777
1750
} ) ;
1778
1751
1779
- // @reactVersion >=18.0
1780
1752
it ( 'should mark render phase force updates for class component' , ( ) => {
1781
1753
let forced = false ;
1782
1754
class Example extends React . Component {
@@ -1844,7 +1816,6 @@ describe('Timeline profiler', () => {
1844
1816
` ) ;
1845
1817
} ) ;
1846
1818
1847
- // @reactVersion >=18.0
1848
1819
it ( 'should mark cascading layout updates' , ( ) => {
1849
1820
function Example ( ) {
1850
1821
const [ didMount , setDidMount ] = React . useState ( false ) ;
@@ -1909,7 +1880,6 @@ describe('Timeline profiler', () => {
1909
1880
` ) ;
1910
1881
} ) ;
1911
1882
1912
- // @reactVersion >=18.0
1913
1883
it ( 'should mark cascading passive updates' , ( ) => {
1914
1884
function Example ( ) {
1915
1885
const [ didMount , setDidMount ] = React . useState ( false ) ;
@@ -1973,7 +1943,6 @@ describe('Timeline profiler', () => {
1973
1943
` ) ;
1974
1944
} ) ;
1975
1945
1976
- // @reactVersion >=18.0
1977
1946
it ( 'should mark render phase updates' , ( ) => {
1978
1947
function Example ( ) {
1979
1948
const [ didRender , setDidRender ] = React . useState ( false ) ;
@@ -2023,7 +1992,6 @@ describe('Timeline profiler', () => {
2023
1992
` ) ;
2024
1993
} ) ;
2025
1994
2026
- // @reactVersion >=18.0
2027
1995
it ( 'should mark sync render that throws' , async ( ) => {
2028
1996
spyOn ( console , 'error' ) ;
2029
1997
@@ -2119,7 +2087,6 @@ describe('Timeline profiler', () => {
2119
2087
` ) ;
2120
2088
} ) ;
2121
2089
2122
- // @reactVersion >=18.0
2123
2090
it ( 'should mark concurrent render that throws' , async ( ) => {
2124
2091
spyOn ( console , 'error' ) ;
2125
2092
@@ -2240,7 +2207,6 @@ describe('Timeline profiler', () => {
2240
2207
` ) ;
2241
2208
} ) ;
2242
2209
2243
- // @reactVersion >=18.0
2244
2210
it ( 'should mark passive and layout effects' , async ( ) => {
2245
2211
function ComponentWithEffects ( ) {
2246
2212
React . useLayoutEffect ( ( ) => {
0 commit comments