Skip to content

Commit c51411c

Browse files
aickinsophiebits
authored andcommitted
Adding new SSR tests for context, refs, and reviving markup. (#9257)
1 parent c47f334 commit c51411c

File tree

4 files changed

+549
-0
lines changed

4 files changed

+549
-0
lines changed

scripts/fiber/tests-failing.txt

+11
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,17 @@ src/renderers/dom/shared/__tests__/ReactDOMServerIntegration-test.js
102102
* renders >,<, and & as single child with client render on top of good server markup
103103
* renders >,<, and & as multiple children with server string render
104104
* renders >,<, and & as multiple children with client render on top of good server markup
105+
* renders class child with context with client render on top of good server markup
106+
* renders stateless child with context with client render on top of good server markup
107+
* renders class child without context with client render on top of good server markup
108+
* renders stateless child without context with client render on top of good server markup
109+
* renders class child with wrong context with client render on top of good server markup
110+
* renders stateless child with wrong context with client render on top of good server markup
111+
* renders with context passed through to a grandchild with client render on top of good server markup
112+
* renders a child context overriding a parent context with client render on top of good server markup
113+
* renders a child context merged with a parent context with client render on top of good server markup
114+
* renders with a call to componentWillMount before getChildContext with client render on top of good server markup
115+
* should send the correct element to ref functions on client
105116

106117
src/renderers/dom/shared/__tests__/ReactDOMTextComponent-test.js
107118
* can reconcile text merged by Node.normalize() alongside other elements

scripts/fiber/tests-passing-except-dev.txt

+29
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,35 @@ src/renderers/dom/shared/__tests__/ReactDOMServerIntegration-test.js
9595
* throws when rendering an undefined component with client render on top of bad server markup
9696
* throws when rendering a number component with clean client render
9797
* throws when rendering a number component with client render on top of bad server markup
98+
* renders class child with context with client render on top of bad server markup
99+
* renders stateless child with context with client render on top of bad server markup
100+
* renders class child without context with client render on top of bad server markup
101+
* renders stateless child without context with client render on top of bad server markup
102+
* renders class child with wrong context with client render on top of bad server markup
103+
* renders stateless child with wrong context with client render on top of bad server markup
104+
* renders with context passed through to a grandchild with client render on top of bad server markup
105+
* renders a child context overriding a parent context with client render on top of bad server markup
106+
* renders a child context merged with a parent context with client render on top of bad server markup
107+
* renders with a call to componentWillMount before getChildContext with client render on top of bad server markup
108+
* should error reconnecting different element types
109+
* should error reconnecting missing attributes
110+
* should error reconnecting added attributes
111+
* should error reconnecting different attribute values
112+
* should error reconnecting different text
113+
* should error reconnecting different numbers
114+
* should error reconnecting different number from text
115+
* should error reconnecting different text in two code blocks
116+
* should error reconnecting missing children
117+
* should error reconnecting added children
118+
* should error reconnecting more children
119+
* should error reconnecting fewer children
120+
* should error reconnecting reordered children
121+
* should error reconnecting a div with children separated by whitespace on the client
122+
* should error reconnecting a div with children separated by different whitespace on the server
123+
* should error reconnecting a div with children separated by different whitespace
124+
* can distinguish an empty component from a dom node
125+
* can distinguish an empty component from an empty text component
126+
* should error reconnecting a div with different dangerouslySetInnerHTML
98127

99128
src/renderers/dom/shared/__tests__/ReactMount-test.js
100129
* should warn if mounting into dirty rendered markup

scripts/fiber/tests-passing.txt

+40
Original file line numberDiff line numberDiff line change
@@ -1154,6 +1154,46 @@ src/renderers/dom/shared/__tests__/ReactDOMServerIntegration-test.js
11541154
* throws when rendering string with server string render
11551155
* throws when rendering string with clean client render
11561156
* throws when rendering string with client render on top of bad server markup
1157+
* renders class child with context with server string render
1158+
* renders class child with context with clean client render
1159+
* renders stateless child with context with server string render
1160+
* renders stateless child with context with clean client render
1161+
* renders class child without context with server string render
1162+
* renders class child without context with clean client render
1163+
* renders stateless child without context with server string render
1164+
* renders stateless child without context with clean client render
1165+
* renders class child with wrong context with server string render
1166+
* renders class child with wrong context with clean client render
1167+
* renders stateless child with wrong context with server string render
1168+
* renders stateless child with wrong context with clean client render
1169+
* renders with context passed through to a grandchild with server string render
1170+
* renders with context passed through to a grandchild with clean client render
1171+
* renders a child context overriding a parent context with server string render
1172+
* renders a child context overriding a parent context with clean client render
1173+
* renders a child context merged with a parent context with server string render
1174+
* renders a child context merged with a parent context with clean client render
1175+
* renders with a call to componentWillMount before getChildContext with server string render
1176+
* renders with a call to componentWillMount before getChildContext with clean client render
1177+
* throws when rendering if getChildContext exists without childContextTypes with server string render
1178+
* throws when rendering if getChildContext exists without childContextTypes with clean client render
1179+
* throws when rendering if getChildContext exists without childContextTypes with client render on top of bad server markup
1180+
* throws when rendering if getChildContext returns a value not in childContextTypes with server string render
1181+
* throws when rendering if getChildContext returns a value not in childContextTypes with clean client render
1182+
* throws when rendering if getChildContext returns a value not in childContextTypes with client render on top of bad server markup
1183+
* should not run ref code on server
1184+
* should run ref code on client
1185+
* should have string refs on client when rendered over server markup
1186+
* should reconnect ES6 Class to ES6 Class
1187+
* should reconnect Pure Component to ES6 Class
1188+
* should reconnect Bare Element to ES6 Class
1189+
* should reconnect ES6 Class to Pure Component
1190+
* should reconnect Pure Component to Pure Component
1191+
* should reconnect Bare Element to Pure Component
1192+
* should reconnect ES6 Class to Bare Element
1193+
* should reconnect Pure Component to Bare Element
1194+
* should reconnect Bare Element to Bare Element
1195+
* should reconnect a div with a number and string version of number
1196+
* should reconnect if component trees differ but resulting markup is the same
11571197

11581198
src/renderers/dom/shared/__tests__/ReactDOMTextComponent-test.js
11591199
* updates a mounted text component in place

0 commit comments

Comments
 (0)