Skip to content

Commit 337c915

Browse files
committed
fix tests time 10 to 17 FPS
1 parent 5f65587 commit 337c915

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

tests/index.js

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ describe('rc-queue-anim', () => {
119119
done();
120120
}, interval);
121121
}, interval);
122-
}, 10);
122+
}, 17);
123123
});
124124

125125
it('should have interval', (done) => {
@@ -138,7 +138,7 @@ describe('rc-queue-anim', () => {
138138
done();
139139
}, interval);
140140
}, interval);
141-
}, 10);
141+
}, 17);
142142
});
143143

144144
it('should have delay', (done) => {
@@ -158,7 +158,7 @@ describe('rc-queue-anim', () => {
158158
}, interval);
159159
}, interval);
160160
}, delay);
161-
}, 10);
161+
}, 17);
162162
});
163163

164164
it('should have duration', (done) => {
@@ -175,7 +175,7 @@ describe('rc-queue-anim', () => {
175175
expect(getOpacity(children[1])).to.be(1);
176176
done();
177177
}, duration);
178-
}, 10);
178+
}, 17);
179179
});
180180

181181
it('should have leave animation', (done) => {
@@ -194,7 +194,7 @@ describe('rc-queue-anim', () => {
194194
expect(TestUtils.scryRenderedDOMComponentsWithTag(instance, 'div').length).to.be(3);
195195
done();
196196
}, 500);
197-
}, 10);
197+
}, 17);
198198
}, interval * 3 + 500);
199199
});
200200

@@ -211,7 +211,7 @@ describe('rc-queue-anim', () => {
211211
children = TestUtils.scryRenderedDOMComponentsWithTag(instance, 'div');
212212
expect(getLeft(children[1])).to.above(0);
213213
done();
214-
}, 10);
214+
}, 17);
215215
});
216216

217217
it('should support animation when change direction at animating', (done) => {
@@ -261,7 +261,7 @@ describe('rc-queue-anim', () => {
261261
done();
262262
}, 550);
263263
}, 550);
264-
}, 5);
264+
}, 17);
265265
});
266266

267267
it('should has animating config is func enter', (done) => {
@@ -301,7 +301,7 @@ describe('rc-queue-anim', () => {
301301
expect(isNaN(getTop(children[1]))).to.be.ok();
302302
console.log('left_end:', getLeft(children[1]));
303303
}, 500);
304-
}, 10);
304+
}, 17);
305305
});
306306

307307
it('should has animating config is func leave', (done) => {
@@ -340,7 +340,7 @@ describe('rc-queue-anim', () => {
340340
done();
341341
}, 500);
342342
}, 110);
343-
}, 10);
343+
}, 17);
344344
}, 1000);
345345
});
346346
});

0 commit comments

Comments
 (0)