Add versioning to jasmine

This commit is contained in:
ragaskar
2009-08-20 22:16:14 -07:00
parent 9b9a4b6835
commit 3993969c41
6 changed files with 73 additions and 7 deletions

View File

@@ -28,6 +28,17 @@ jasmine.Env.prototype.clearTimeout = jasmine.clearTimeout;
jasmine.Env.prototype.setInterval = jasmine.setInterval;
jasmine.Env.prototype.clearInterval = jasmine.clearInterval;
jasmine.Env.prototype.version = function () {
if (jasmine.version_) {
return parseInt(jasmine.version_.major + "" +
jasmine.version_.minor + "" +
jasmine.version_.build + "" +
jasmine.version_.revision + "");
} else {
return 0;
}
};
/**
* Register a reporter to receive status updates from Jasmine.
* @param {jasmine.Reporter} reporter An object which will receive status updates.

6
src/version.json Normal file
View File

@@ -0,0 +1,6 @@
{
"major": 0,
"minor": 9,
"build": 0,
"revision": 0
}