Start of before/after refactor. Yank defineGetter on nestedResults. rake build task now sorts sources to minimize jasmine.js changes post-build

This commit is contained in:
ragaskar
2009-08-01 10:43:03 -07:00
parent 60f513cbff
commit d5489a3e0d
5 changed files with 644 additions and 623 deletions

View File

@@ -15,8 +15,8 @@ jasmine.Suite = function(env, description, specDefinitions, parentSuite) {
this.specs = this.actions;
this.parentSuite = parentSuite;
this.beforeEachFunction = null;
this.afterEachFunction = null;
this.beforeQueue = [];
this.afterQueue = [];
};
jasmine.util.inherit(jasmine.Suite, jasmine.ActionCollection);
@@ -34,12 +34,12 @@ jasmine.Suite.prototype.finishCallback = function() {
jasmine.Suite.prototype.beforeEach = function(beforeEachFunction) {
beforeEachFunction.typeName = 'beforeEach';
this.beforeEachFunction = beforeEachFunction;
this.beforeQueue.push(beforeEachFunction);
};
jasmine.Suite.prototype.afterEach = function(afterEachFunction) {
afterEachFunction.typeName = 'afterEach';
this.afterEachFunction = afterEachFunction;
this.afterQueue.push(afterEachFunction);
};
jasmine.Suite.prototype.getResults = function() {