Reintroduce fn that clears stack occasionally

- setTimeout will clear stack, prevent overflow. We run this once every
  thousand specs.
- Browser users will probably want a time-based clear rather than spec
  count based clear, as a thousand tests is typically quite slow. The
  reporter should provide this.
This commit is contained in:
Davis W. Frank & Rajan Agaskar
2012-12-07 12:26:05 -08:00
parent c584f182ab
commit 234f2a1585
3 changed files with 37 additions and 6 deletions

View File

@@ -159,6 +159,7 @@ process.argv.forEach(function(arg) {
}
});
// var specs = jasmine.getAllSpecFiles(__dirname + '/smoke', new RegExp("test.js$"));
var specs = jasmine.getAllSpecFiles(__dirname, new RegExp("Spec.js$"));
var domIndependentSpecs = [];
for (var i = 0; i < specs.length; i++) {