dwf/rva: started suite testing.

This commit is contained in:
pivotal
2008-12-01 17:57:21 -08:00
parent 7a95f3344c
commit be33f1e6d4
3 changed files with 75 additions and 18 deletions

View File

@@ -123,17 +123,31 @@ var it = function (description) {
}
that.resetTimeout();
return that;
}
that.runs = addToQueue;
that.then = addToQueue;
currentSuite.tests.push(that);
return that;
}
var currentSuite;
var describe = function (description, tests) {
var that = {
description: description,
tests: []
}
currentSuite = that;
tests();
return that;
}
/*
* Jasmine constructor
*/