@@ -28,15 +28,15 @@ function runAllTests() {
2828function checkSchedulerAPI ( ) {
2929 runTest ( document . getElementById ( 'checkSchedulerAPI' ) , ( ) => {
3030 if (
31- typeof Schedule === 'undefined' ||
32- typeof Schedule . unstable_now !== 'function' ||
33- typeof Schedule . unstable_scheduleWork !== 'function' ||
34- typeof Schedule . unstable_cancelScheduledWork !== 'function'
31+ typeof Scheduler === 'undefined' ||
32+ typeof Scheduler . unstable_now !== 'function' ||
33+ typeof Scheduler . unstable_scheduleWork !== 'function' ||
34+ typeof Scheduler . unstable_cancelScheduledWork !== 'function'
3535 ) {
3636 throw 'API is not defined' ;
3737 }
3838
39- if ( Schedule . unstable_now ( ) !== performance . now ( ) ) {
39+ if ( Scheduler . unstable_now ( ) !== performance . now ( ) ) {
4040 throw 'API does not work' ;
4141 }
4242
@@ -47,20 +47,20 @@ function checkSchedulerAPI() {
4747function checkSchedulerTracingAPI ( ) {
4848 runTest ( document . getElementById ( 'checkSchedulerTracingAPI' ) , ( ) => {
4949 if (
50- typeof ScheduleTracing === 'undefined' ||
51- typeof ScheduleTracing . unstable_clear !== 'function' ||
52- typeof ScheduleTracing . unstable_getCurrent !== 'function' ||
53- typeof ScheduleTracing . unstable_getThreadID !== 'function' ||
54- typeof ScheduleTracing . unstable_trace !== 'function' ||
55- typeof ScheduleTracing . unstable_wrap !== 'function'
50+ typeof SchedulerTracing === 'undefined' ||
51+ typeof SchedulerTracing . unstable_clear !== 'function' ||
52+ typeof SchedulerTracing . unstable_getCurrent !== 'function' ||
53+ typeof SchedulerTracing . unstable_getThreadID !== 'function' ||
54+ typeof SchedulerTracing . unstable_trace !== 'function' ||
55+ typeof SchedulerTracing . unstable_wrap !== 'function'
5656 ) {
5757 throw 'API is not defined' ;
5858 }
5959
6060 try {
6161 let interactionsSet ;
62- ScheduleTracing . unstable_trace ( 'test' , 123 , ( ) => {
63- interactionsSet = ScheduleTracing . unstable_getCurrent ( ) ;
62+ SchedulerTracing . unstable_trace ( 'test' , 123 , ( ) => {
63+ interactionsSet = SchedulerTracing . unstable_getCurrent ( ) ;
6464 } ) ;
6565 if ( interactionsSet . size !== 1 ) {
6666 throw null ;
@@ -74,10 +74,10 @@ function checkSchedulerTracingAPI() {
7474 }
7575
7676 const ForwardedSchedulerTracing =
77- React . __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED . ScheduleTracing ;
77+ React . __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED . SchedulerTracing ;
7878
7979 if (
80- ScheduleTracing . unstable_getThreadID ( ) ===
80+ SchedulerTracing . unstable_getThreadID ( ) ===
8181 ForwardedSchedulerTracing . unstable_getThreadID ( )
8282 ) {
8383 throw 'API forwarding is broken' ;
@@ -90,9 +90,9 @@ function checkSchedulerTracingSubscriptionsAPI() {
9090 document . getElementById ( 'checkSchedulerTracingSubscriptionsAPI' ) ,
9191 ( ) => {
9292 if (
93- typeof ScheduleTracing === 'undefined' ||
94- typeof ScheduleTracing . unstable_subscribe !== 'function' ||
95- typeof ScheduleTracing . unstable_unsubscribe !== 'function'
93+ typeof SchedulerTracing === 'undefined' ||
94+ typeof SchedulerTracing . unstable_subscribe !== 'function' ||
95+ typeof SchedulerTracing . unstable_unsubscribe !== 'function'
9696 ) {
9797 throw 'API is not defined' ;
9898 }
@@ -114,17 +114,17 @@ function checkSchedulerTracingSubscriptionsAPI() {
114114 } ;
115115
116116 try {
117- ScheduleTracing . unstable_subscribe ( subscriber ) ;
118- ScheduleTracing . unstable_trace ( 'foo' , 123 , ( ) => { } ) ;
119- ScheduleTracing . unstable_unsubscribe ( subscriber ) ;
117+ SchedulerTracing . unstable_subscribe ( subscriber ) ;
118+ SchedulerTracing . unstable_trace ( 'foo' , 123 , ( ) => { } ) ;
119+ SchedulerTracing . unstable_unsubscribe ( subscriber ) ;
120120 if ( onInteractionTracedCalls . length !== 1 ) {
121121 throw null ;
122122 }
123123 const interaction = onInteractionTracedCalls [ 0 ] [ 0 ] ;
124124 if ( interaction . name !== 'foo' || interaction . timestamp !== 123 ) {
125125 throw null ;
126126 }
127- ScheduleTracing . unstable_trace ( 'bar' , 456 , ( ) => { } ) ;
127+ SchedulerTracing . unstable_trace ( 'bar' , 456 , ( ) => { } ) ;
128128 if ( onInteractionTracedCalls . length !== 1 ) {
129129 throw null ;
130130 }
@@ -134,13 +134,13 @@ function checkSchedulerTracingSubscriptionsAPI() {
134134
135135 const ForwardedSchedulerTracing =
136136 React . __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED
137- . ScheduleTracing ;
137+ . SchedulerTracing ;
138138
139139 try {
140140 ForwardedSchedulerTracing . unstable_subscribe ( subscriber ) ;
141- ScheduleTracing . unstable_trace ( 'foo' , 123 , ( ) => { } ) ;
141+ SchedulerTracing . unstable_trace ( 'foo' , 123 , ( ) => { } ) ;
142142 ForwardedSchedulerTracing . unstable_trace ( 'bar' , 456 , ( ) => { } ) ;
143- ScheduleTracing . unstable_unsubscribe ( subscriber ) ;
143+ SchedulerTracing . unstable_unsubscribe ( subscriber ) ;
144144 if ( onInteractionTracedCalls . length !== 3 ) {
145145 throw null ;
146146 }
@@ -172,7 +172,7 @@ function checkEndToEndIntegration() {
172172 const onRender = ( ...args ) => onRenderCalls . push ( args ) ;
173173 const container = document . createElement ( 'div' ) ;
174174
175- ScheduleTracing . unstable_trace ( 'render' , 123 , ( ) => {
175+ SchedulerTracing . unstable_trace ( 'render' , 123 , ( ) => {
176176 ReactDOM . render (
177177 React . createElement (
178178 React . unstable_Profiler ,
0 commit comments