Fix 'doubled' test runs in test runner

This commit is contained in:
ragaskar
2009-09-01 21:21:54 -07:00
parent b9ee6a9119
commit 50134eb1ac
20 changed files with 288 additions and 272 deletions

View File

@@ -52,15 +52,20 @@ jasmine.Suite.prototype.getResults = function() {
jasmine.Suite.prototype.add = function(block) {
if (block instanceof jasmine.Suite) {
this.env.currentRunner.addSuite(block);
} else {
this.specs.push(block);
}
this.specs.push(block);
this.queue.add(block);
};
jasmine.Suite.prototype.specCount = function(block) {
jasmine.Suite.prototype.specCount = function() {
return this.specs.length;
};
jasmine.Suite.prototype.getSpecs = function() {
return this.specs;
};
jasmine.Suite.prototype.execute = function(onComplete) {
var self = this;
this.queue.start(function () {