Skip to content

Commit

Permalink
Version bump to 0.10.4
Browse files Browse the repository at this point in the history
  • Loading branch information
Pivotal committed Jun 5, 2010
1 parent 5aa306c commit c187adc
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 16 deletions.
12 changes: 5 additions & 7 deletions example/example_runner.html
Expand Up @@ -3,15 +3,13 @@
<html>
<head>
<title>Jasmine Test Runner</title>
<link rel="stylesheet" type="text/css" href="../lib/jasmine.css">
<script type="text/javascript" src="../lib/jasmine-0.10.4.js"></script>
<script type="text/javascript" src="../lib/TrivialReporter.js"></script>
<script type="text/javascript" src="../lib/consolex.js"></script>
<script type="text/javascript" src="spec/example_suite.js"></script>
</head>
<script type="text/javascript" src="../lib/jasmine-0.10.3.js"></script>
<script type="text/javascript" src="../lib/TrivialReporter.js"></script>
<script type="text/javascript" src="../lib/consolex.js"></script>
<script type="text/javascript" src="spec/example_suite.js"></script>
<link rel="stylesheet" type="text/css" href="../lib/jasmine.css">

<body>

<script type="text/javascript">
var jasmineEnv = jasmine.getEnv();
jasmineEnv.reporter = new jasmine.TrivialReporter();
Expand Down
34 changes: 26 additions & 8 deletions lib/jasmine-0.10.3.js → lib/jasmine-0.10.4.js
Expand Up @@ -57,6 +57,10 @@ jasmine.MessageResult = function(text) {
this.trace = new Error(); // todo: test better
};

jasmine.MessageResult.prototype.toString = function() {
return this.text;
};

jasmine.ExpectationResult = function(params) {
this.type = 'ExpectationResult';
this.matcherName = params.matcherName;
Expand All @@ -71,6 +75,10 @@ jasmine.ExpectationResult = function(params) {
this.trace = this.passed_ ? '' : new Error(this.message);
};

jasmine.ExpectationResult.prototype.toString = function () {
return this.message;
};

jasmine.ExpectationResult.prototype.passed = function () {
return this.passed_;
};
Expand Down Expand Up @@ -741,10 +749,21 @@ jasmine.Env.prototype.describe = function(description, specDefinitions) {

this.currentSuite = suite;

specDefinitions.call(suite);
var declarationError = null;
try {
specDefinitions.call(suite);
} catch(e) {
declarationError = e;
}

this.currentSuite = parentSuite;

if (declarationError) {
this.it("encountered a declaration exception", function() {
throw declarationError;
});
}

return suite;
};

Expand Down Expand Up @@ -1777,12 +1796,12 @@ jasmine.Runner.prototype.execute = function() {

jasmine.Runner.prototype.beforeEach = function(beforeEachFunction) {
beforeEachFunction.typeName = 'beforeEach';
this.before_.push(beforeEachFunction);
this.before_.splice(0,0,beforeEachFunction);
};

jasmine.Runner.prototype.afterEach = function(afterEachFunction) {
afterEachFunction.typeName = 'afterEach';
this.after_.push(afterEachFunction);
this.after_.splice(0,0,afterEachFunction);
};


Expand Down Expand Up @@ -2063,12 +2082,12 @@ jasmine.Suite.prototype.finish = function(onComplete) {

jasmine.Suite.prototype.beforeEach = function(beforeEachFunction) {
beforeEachFunction.typeName = 'beforeEach';
this.before_.push(beforeEachFunction);
this.before_.unshift(beforeEachFunction);
};

jasmine.Suite.prototype.afterEach = function(afterEachFunction) {
afterEachFunction.typeName = 'afterEach';
this.after_.push(afterEachFunction);
this.after_.unshift(afterEachFunction);
};

jasmine.Suite.prototype.results = function() {
Expand Down Expand Up @@ -2139,7 +2158,6 @@ jasmine.WaitsForBlock.prototype.execute = function (onComplete) {
name: 'timeout',
message: message
});
onComplete();
} else {
self.totalTimeSpentWaitingForLatch += jasmine.WaitsForBlock.TIMEOUT_INCREMENT;
self.env.setTimeout(function () { self.execute(onComplete); }, jasmine.WaitsForBlock.TIMEOUT_INCREMENT);
Expand Down Expand Up @@ -2326,6 +2344,6 @@ window.clearInterval = function(timeoutKey) {
jasmine.version_= {
"major": 0,
"minor": 10,
"build": 3,
"revision": 1270162784
"build": 4,
"revision": 1275748595
};
2 changes: 1 addition & 1 deletion src/version.json
@@ -1,5 +1,5 @@
{
"major": 0,
"minor": 10,
"build": 3
"build": 4
}

0 comments on commit c187adc

Please sign in to comment.