|
106 | 106 | }); |
107 | 107 | }); |
108 | 108 |
|
109 | | - test('checkScrollThesholds', function(done) { |
| 109 | + test('checkScrollThresholds', function(done) { |
110 | 110 | flush(function() { |
111 | 111 | scrollThreshold._scrollTop = scrollThreshold.scrollTarget.scrollHeight; |
112 | 112 |
|
113 | 113 | assert.isFalse(scrollThreshold.lowerTriggered, 'check assumption'); |
114 | | - scrollThreshold.checkScrollThesholds(); |
| 114 | + scrollThreshold.checkScrollThresholds(); |
115 | 115 | assert.isTrue(scrollThreshold.lowerTriggered, 'check triggers'); |
116 | 116 | scrollThreshold.clearTriggers(); |
117 | 117 | assert.isFalse(scrollThreshold.lowerTriggered, 'reset triggers'); |
|
126 | 126 | scrollThreshold._scrollLeft = scrollThreshold.scrollTarget.scrollWidth; |
127 | 127 |
|
128 | 128 | assert.isFalse(scrollThreshold.lowerTriggered, 'check assumption'); |
129 | | - scrollThreshold.checkScrollThesholds(); |
| 129 | + scrollThreshold.checkScrollThresholds(); |
130 | 130 | assert.isTrue(scrollThreshold.lowerTriggered, 'check lowerTriggered'); |
131 | 131 | scrollThreshold._scrollLeft = 0; |
132 | | - scrollThreshold.checkScrollThesholds(); |
| 132 | + scrollThreshold.checkScrollThresholds(); |
133 | 133 | assert.isTrue(scrollThreshold.upperTriggered, 'upperTriggered'); |
134 | 134 | done(); |
135 | 135 | }); |
|
187 | 187 | }); |
188 | 188 | }); |
189 | 189 |
|
190 | | - test('checkScrollThesholds', function(done) { |
| 190 | + test('checkScrollThresholds', function(done) { |
191 | 191 | flush(function() { |
192 | 192 | scrollThreshold._scrollTop = scrollThreshold.scrollTarget.scrollHeight; |
193 | 193 |
|
194 | 194 | assert.isFalse(scrollThreshold.lowerTriggered, 'check assumption'); |
195 | | - scrollThreshold.checkScrollThesholds(); |
| 195 | + scrollThreshold.checkScrollThresholds(); |
196 | 196 | assert.isTrue(scrollThreshold.lowerTriggered, 'check triggers'); |
197 | 197 | scrollThreshold.clearTriggers(); |
198 | 198 | assert.isFalse(scrollThreshold.lowerTriggered, 'reset triggers'); |
|
207 | 207 | scrollThreshold._scrollLeft = scrollThreshold.scrollTarget.scrollWidth; |
208 | 208 |
|
209 | 209 | assert.isFalse(scrollThreshold.lowerTriggered, 'check assumption'); |
210 | | - scrollThreshold.checkScrollThesholds(); |
| 210 | + scrollThreshold.checkScrollThresholds(); |
211 | 211 | assert.isTrue(scrollThreshold.lowerTriggered, 'check lowerTriggered'); |
212 | 212 | scrollThreshold._scrollLeft = 0; |
213 | | - scrollThreshold.checkScrollThesholds(); |
| 213 | + scrollThreshold.checkScrollThresholds(); |
214 | 214 | assert.isTrue(scrollThreshold.upperTriggered, 'upperTriggered'); |
215 | 215 | done(); |
216 | 216 | }); |
|
0 commit comments