Skip to content

Commit 2da1de5

Browse files
committed
Revert performance optimization of using setTimeout in SpecRunner every 10 steps. Breaks loading partials
1 parent ee8465b commit 2da1de5

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/scenario/SpecRunner.js

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ angular.scenario.SpecRunner = function() {
2121
*/
2222
angular.scenario.SpecRunner.prototype.run = function(spec, specDone) {
2323
var self = this;
24-
var count = 0;
2524
this.spec = spec;
2625

2726
this.emit('SpecBegin', spec);
@@ -59,11 +58,7 @@ angular.scenario.SpecRunner.prototype.run = function(spec, specDone) {
5958
return handleError(error, futureDone);
6059
}
6160
self.emit('StepEnd', spec, future);
62-
if ((count++) % 10 === 0) {
63-
self.$window.setTimeout(function() { futureDone(); }, 0);
64-
} else {
65-
futureDone();
66-
}
61+
self.$window.setTimeout(function() { futureDone(); }, 0);
6762
});
6863
} catch (e) {
6964
self.emit('StepError', spec, future, e);

0 commit comments

Comments
 (0)