react-native/Libraries/Lists/__tests__
Logan Daniels 3559e42c55 Make sure VirtualizedList's windowSize is greater than 0
Summary:
Setting `windowSize = 0` doesn't make sense. Let's make sure we catch this problem in the constructor so that it doesn't cause inexplicable list behavior.

Also fixed an invariant in `VirtualizeUtils` that is meant to prohibit non-monotonically-increasing offset arrays. As written, the invariant condition can never actually be violated.

Reviewed By: sahrens

Differential Revision: D6625302

fbshipit-source-id: b2a983cbe7bb5fbe0aed7c5d59e69a8a00672993
2017-12-21 18:43:50 -08:00
..
__snapshots__ Make sure VirtualizedList's windowSize is greater than 0 2017-12-21 18:43:50 -08:00
FillRateHelper-test.js Adding @email tags to most of the tests 2017-11-02 06:25:03 -07:00
FlatList-test.js Adding @email tags to most of the tests 2017-11-02 06:25:03 -07:00
SectionList-test.js Adding @email tags to most of the tests 2017-11-02 06:25:03 -07:00
ViewabilityHelper-test.js Adding @email tags to most of the tests 2017-11-02 06:25:03 -07:00
VirtualizeUtils-test.js Make sure VirtualizedList's windowSize is greater than 0 2017-12-21 18:43:50 -08:00
VirtualizedList-test.js Adding @email tags to most of the tests 2017-11-02 06:25:03 -07:00