Skip to content

Commit 3947531

Browse files
committed
Update passing tests
1 parent 209c324 commit 3947531

File tree

2 files changed

+19
-23
lines changed

2 files changed

+19
-23
lines changed

scripts/fiber/tests-failing.txt

Lines changed: 1 addition & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,7 @@ src/addons/transitions/__tests__/ReactTransitionGroup-test.js
2222
* should warn for duplicated keys with component stack info
2323

2424
src/isomorphic/classic/__tests__/ReactContextValidator-test.js
25-
* should filter out context not in contextTypes
26-
* should filter context properly in callbacks
25+
* should pass previous context to lifecycles
2726
* should check context types
2827
* should check child context types
2928

@@ -36,9 +35,6 @@ src/isomorphic/classic/class/__tests__/ReactBindOptout-test.js
3635
* works with mixins that have not opted out of autobinding
3736
* works with mixins that have opted out of autobinding
3837

39-
src/isomorphic/classic/class/__tests__/ReactClass-test.js
40-
* renders based on context getInitialState
41-
4238
src/isomorphic/classic/element/__tests__/ReactElementClone-test.js
4339
* should check declared prop types after clone
4440

@@ -47,21 +43,8 @@ src/isomorphic/classic/element/__tests__/ReactElementValidator-test.js
4743
* should give context for PropType errors in nested components.
4844
* includes the owner name when passing null, undefined, boolean, or number
4945

50-
src/isomorphic/modern/class/__tests__/ReactCoffeeScriptClass-test.coffee
51-
* renders based on context in the constructor
52-
* supports this.context passed via getChildContext
53-
54-
src/isomorphic/modern/class/__tests__/ReactES6Class-test.js
55-
* renders based on context in the constructor
56-
* supports this.context passed via getChildContext
57-
58-
src/isomorphic/modern/class/__tests__/ReactTypeScriptClass-test.ts
59-
* renders based on context in the constructor
60-
* supports this.context passed via getChildContext
61-
6246
src/isomorphic/modern/element/__tests__/ReactJSXElementValidator-test.js
6347
* should give context for PropType errors in nested components.
64-
* should warn on invalid context types
6548

6649
src/renderers/art/__tests__/ReactART-test.js
6750
* should have the correct lifecycle state
@@ -523,11 +506,8 @@ src/renderers/shared/stack/reconciler/__tests__/ReactCompositeComponent-test.js
523506
* should warn about `setState` on unmounted components
524507
* should warn about `setState` in render
525508
* should warn about `setState` in getChildContext
526-
* should pass context to children when not owner
527509
* should pass context when re-rendered for static child
528510
* should pass context when re-rendered for static child within a composite component
529-
* should pass context transitively
530-
* should pass context when re-rendered
531511
* unmasked context propagates through updates
532512
* should trigger componentWillReceiveProps for context changes
533513
* should disallow nested render calls
@@ -555,12 +535,10 @@ src/renderers/shared/stack/reconciler/__tests__/ReactMultiChildText-test.js
555535
* should reorder keyed text nodes
556536

557537
src/renderers/shared/stack/reconciler/__tests__/ReactStatelessComponent-test.js
558-
* should pass context thru stateless component
559538
* should warn for childContextTypes on a functional component
560539
* should warn when stateless component returns array
561540
* should throw on string refs in pure functions
562541
* should warn when given a ref
563-
* should receive context
564542
* should warn when using non-React functions in JSX
565543

566544
src/renderers/shared/stack/reconciler/__tests__/ReactUpdates-test.js

scripts/fiber/tests-passing.txt

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,10 @@ src/isomorphic/children/__tests__/sliceChildren-test.js
128128
* should allow static children to be sliced
129129
* should slice nested children
130130

131+
src/isomorphic/classic/__tests__/ReactContextValidator-test.js
132+
* should filter out context not in contextTypes
133+
* should pass next context to lifecycles
134+
131135
src/isomorphic/classic/class/__tests__/ReactBind-test.js
132136
* warns if you try to bind to this
133137
* does not warn if you pass an auto-bound method to setState
@@ -149,6 +153,7 @@ src/isomorphic/classic/class/__tests__/ReactClass-test.js
149153
* should throw if a reserved property is in statics
150154
* should support statics
151155
* should work with object getInitialState() return values
156+
* renders based on context getInitialState
152157
* should throw with non-object getInitialState() return values
153158
* should work with a null getInitialState() return value
154159
* should throw when using legacy factories
@@ -354,6 +359,7 @@ src/isomorphic/modern/class/__tests__/ReactCoffeeScriptClass-test.coffee
354359
* renders a simple stateless component with prop
355360
* renders based on state using initial values in this.props
356361
* renders based on state using props in the constructor
362+
* renders based on context in the constructor
357363
* renders only once when setting state in componentWillMount
358364
* should throw with non-object in the initial state property
359365
* should render with null in the initial state property
@@ -365,6 +371,7 @@ src/isomorphic/modern/class/__tests__/ReactCoffeeScriptClass-test.coffee
365371
* should warn when misspelling shouldComponentUpdate
366372
* should warn when misspelling componentWillReceiveProps
367373
* should throw AND warn when trying to access classic APIs
374+
* supports this.context passed via getChildContext
368375
* supports classic refs
369376
* supports drilling through to the DOM using findDOMNode
370377

@@ -374,6 +381,7 @@ src/isomorphic/modern/class/__tests__/ReactES6Class-test.js
374381
* renders a simple stateless component with prop
375382
* renders based on state using initial values in this.props
376383
* renders based on state using props in the constructor
384+
* renders based on context in the constructor
377385
* renders only once when setting state in componentWillMount
378386
* should throw with non-object in the initial state property
379387
* should render with null in the initial state property
@@ -385,6 +393,7 @@ src/isomorphic/modern/class/__tests__/ReactES6Class-test.js
385393
* should warn when misspelling shouldComponentUpdate
386394
* should warn when misspelling componentWillReceiveProps
387395
* should throw AND warn when trying to access classic APIs
396+
* supports this.context passed via getChildContext
388397
* supports classic refs
389398
* supports drilling through to the DOM using findDOMNode
390399

@@ -399,6 +408,7 @@ src/isomorphic/modern/class/__tests__/ReactTypeScriptClass-test.ts
399408
* renders a simple stateless component with prop
400409
* renders based on state using initial values in this.props
401410
* renders based on state using props in the constructor
411+
* renders based on context in the constructor
402412
* renders only once when setting state in componentWillMount
403413
* should throw with non-object in the initial state property
404414
* should render with null in the initial state property
@@ -410,6 +420,7 @@ src/isomorphic/modern/class/__tests__/ReactTypeScriptClass-test.ts
410420
* should warn when misspelling shouldComponentUpdate
411421
* should warn when misspelling componentWillReceiveProps
412422
* should throw AND warn when trying to access classic APIs
423+
* supports this.context passed via getChildContext
413424
* supports classic refs
414425
* supports drilling through to the DOM using findDOMNode
415426

@@ -446,6 +457,7 @@ src/isomorphic/modern/element/__tests__/ReactJSXElementValidator-test.js
446457
* should not check the default for explicit null
447458
* should check declared prop types
448459
* should warn on invalid prop types
460+
* should warn on invalid context types
449461
* should warn if getDefaultProps is specificed on the class
450462

451463
src/renderers/dom/__tests__/ReactDOMProduction-test.js
@@ -807,6 +819,7 @@ src/renderers/shared/fiber/__tests__/ReactIncremental-test.js
807819
* performs batched updates at the end of the batch
808820
* can nest batchedUpdates
809821
* can handle if setState callback throws
822+
* merges and masks context
810823

811824
src/renderers/shared/fiber/__tests__/ReactIncrementalErrorHandling-test.js
812825
* catches render error in a boundary during mounting
@@ -1019,7 +1032,10 @@ src/renderers/shared/stack/reconciler/__tests__/ReactCompositeComponent-test.js
10191032
* should call componentWillUnmount before unmounting
10201033
* should warn when shouldComponentUpdate() returns undefined
10211034
* should warn when componentDidUnmount method is defined
1035+
* should pass context to children when not owner
10221036
* should skip update when rerendering element in container
1037+
* should pass context transitively
1038+
* should pass context when re-rendered
10231039
* only renders once if updated in componentWillReceiveProps
10241040
* should allow access to findDOMNode in componentWillUnmount
10251041
* context should be passed down from the parent
@@ -1148,9 +1164,11 @@ src/renderers/shared/stack/reconciler/__tests__/ReactStatelessComponent-test.js
11481164
* should render stateless component
11491165
* should update stateless component
11501166
* should unmount stateless component
1167+
* should pass context thru stateless component
11511168
* should provide a null ref
11521169
* should use correct name in key warning
11531170
* should support default props and prop types
1171+
* should receive context
11541172
* should work with arrow functions
11551173
* should allow simple functions to return null
11561174
* should allow simple functions to return false

0 commit comments

Comments
 (0)