Merge branch 'suite-start' of https://github.com/javenwang/jasmine into javenwang-suite-start
This commit is contained in:
@@ -1786,6 +1786,7 @@ getJasmineRequireObj().Suite = function() {
|
||||
|
||||
Suite.prototype.disable = function() {
|
||||
this.disabled = true;
|
||||
this.result.status = 'disabled';
|
||||
};
|
||||
|
||||
Suite.prototype.beforeEach = function(fn) {
|
||||
@@ -1802,6 +1803,9 @@ getJasmineRequireObj().Suite = function() {
|
||||
|
||||
Suite.prototype.execute = function(onComplete) {
|
||||
var self = this;
|
||||
|
||||
this.onStart(this);
|
||||
|
||||
if (this.disabled) {
|
||||
complete();
|
||||
return;
|
||||
@@ -1813,8 +1817,6 @@ getJasmineRequireObj().Suite = function() {
|
||||
allFns.push(wrapChildAsAsync(this.children[i]));
|
||||
}
|
||||
|
||||
this.onStart(this);
|
||||
|
||||
this.queueRunner({
|
||||
fns: allFns,
|
||||
onComplete: complete
|
||||
|
||||
Reference in New Issue
Block a user