@@ -19,7 +19,7 @@ let Suspense;
1919let SuspenseList ;
2020let act ;
2121let IdleEventPriority ;
22- let __WWW__ ;
22+ let usingPartialRenderer ;
2323
2424function normalizeCodeLocInfo ( strOrErr ) {
2525 if ( strOrErr && strOrErr . replace ) {
@@ -111,7 +111,7 @@ describe('ReactDOMServerPartialHydration', () => {
111111 SuspenseList = React . SuspenseList ;
112112 }
113113
114- __WWW__ = global . __WWW__ ;
114+ usingPartialRenderer = global . __WWW__ && ! __EXPERIMENTAL__ ;
115115
116116 IdleEventPriority = require ( 'react-reconciler/constants' ) . IdleEventPriority ;
117117 } ) ;
@@ -1671,8 +1671,8 @@ describe('ReactDOMServerPartialHydration', () => {
16711671 Scheduler . unstable_yieldValue ( error . message ) ;
16721672 } ,
16731673 } ) ;
1674- // we exclude dev fb bundles
1675- if ( __DEV__ && ! __WWW__ ) {
1674+ // we exclude fb bundles with partial renderer
1675+ if ( __DEV__ && ! usingPartialRenderer ) {
16761676 expect ( Scheduler ) . toFlushAndYield ( [
16771677 'This Suspense boundary was aborted by the server.' ,
16781678 ] ) ;
@@ -1739,8 +1739,8 @@ describe('ReactDOMServerPartialHydration', () => {
17391739 Scheduler . unstable_yieldValue ( error . message ) ;
17401740 } ,
17411741 } ) ;
1742- // we exclude dev fb bundles
1743- if ( __DEV__ && ! __WWW__ ) {
1742+ // we exclude fb bundles with partial renderer
1743+ if ( __DEV__ && ! usingPartialRenderer ) {
17441744 expect ( Scheduler ) . toFlushAndYield ( [
17451745 'This Suspense boundary was aborted by the server.' ,
17461746 ] ) ;
@@ -1812,8 +1812,8 @@ describe('ReactDOMServerPartialHydration', () => {
18121812 Scheduler . unstable_yieldValue ( error . message ) ;
18131813 } ,
18141814 } ) ;
1815- // we exclude dev fb bundles
1816- if ( __DEV__ && ! __WWW__ ) {
1815+ // we exclude fb bundles with partial renderer
1816+ if ( __DEV__ && ! usingPartialRenderer ) {
18171817 expect ( Scheduler ) . toFlushAndYield ( [
18181818 'This Suspense boundary was aborted by the server.' ,
18191819 ] ) ;
@@ -2136,8 +2136,8 @@ describe('ReactDOMServerPartialHydration', () => {
21362136 } ) ;
21372137
21382138 suspend = true ;
2139- // we exclude fb-classic as well by requiring __EXPERIMENTAL__
2140- if ( __DEV__ && __EXPERIMENTAL__ ) {
2139+ // we exclude fb bundles with partial renderer
2140+ if ( __DEV__ && ! usingPartialRenderer ) {
21412141 expect ( Scheduler ) . toFlushAndYield ( [
21422142 'This Suspense boundary was aborted by the server.' ,
21432143 ] ) ;
@@ -2205,8 +2205,8 @@ describe('ReactDOMServerPartialHydration', () => {
22052205 Scheduler . unstable_yieldValue ( error . message ) ;
22062206 } ,
22072207 } ) ;
2208- // we exclude dev fb bundles
2209- if ( __DEV__ && ! __WWW__ ) {
2208+ // we exclude fb bundles with partial renderer
2209+ if ( __DEV__ && ! usingPartialRenderer ) {
22102210 expect ( Scheduler ) . toFlushAndYield ( [
22112211 'This Suspense boundary was aborted by the server.' ,
22122212 ] ) ;
0 commit comments