Moved currentlyRunningTests to Runner instead of spec

This commit is contained in:
Erik Hanson & Rajan Agaskar
2009-10-21 09:33:31 -07:00
parent e77162f308
commit b35a2acfc8
18 changed files with 2247 additions and 2396 deletions

View File

@@ -384,9 +384,7 @@ ul.inheritsList
</div>
<div class="description">
A function that is called after each spec in a suite.
Used for restoring any state that is hijacked during spec execution.
A function that is called after each spec in a suite.
Used for restoring any state that is hijacked during spec execution.
@@ -425,9 +423,7 @@ Used for restoring any state that is hijacked during spec execution.
<b>beforeEach</b>(beforeEachFunction)
A function that is called before each spec in a suite.
Used for spec setup, including validating assumptions.
</div>
<div class="description">
A function that is called before each spec in a suite.
@@ -466,11 +462,7 @@ Used for spec setup, including validating assumptions.
<div class="fixedFont">
Defines a suite of specifications.
Stores the description and all defined specs in the Jasmine environment as one suite of specs. Variables declared
are accessible by calls to beforeEach, it, and afterEach. Describe blocks can be nested, allowing for specialization
of setup in some tests.
<b>describe</b>(description, specDefinitions)
</div>
<div class="description">
@@ -480,9 +472,7 @@ of setup in some tests.
are accessible by calls to beforeEach, it, and afterEach. Describe blocks can be nested, allowing for specialization
of setup in some tests.
<pre class="code">// TODO: a simple suite
// TODO: a simple suite with a nested describe block</pre>
<br />
<i>Defined in: </i> <a href="../symbols/src/lib_jasmine-0.10.0.js.html">jasmine-0.10.0.js</a>.
@@ -521,10 +511,7 @@ of setup in some tests.
Starts a chain for a Jasmine expectation.
It is passed an Object that is the actual value and should chain to one of the many
jasmine.Matchers functions.
<hr />
<a name="expect"> </a>
<div class="fixedFont">
@@ -563,9 +550,7 @@ jasmine.Matchers functions.
Creates a Jasmine spec that will be added to the current suite.
// TODO: pending tests
<hr />
@@ -575,9 +560,7 @@ jasmine.Matchers functions.
<b>it</b>(desc, func)
<pre class="code">it('should be true', function() {
expect(true).toEqual(true);
});</pre>
</div>
<div class="description">
Creates a Jasmine spec that will be added to the current suite.
@@ -665,11 +648,7 @@ jasmine.Matchers functions.
<hr />
<a name="spyOn"> </a>
<pre class="code">// spy example
var foo = {
not: function(bool) { return !bool; }
}
spyOn(foo, 'not'); // actual foo.not will not be called, execution stops</pre>
<div class="fixedFont">
<b>spyOn</b>(obj, methodName)
@@ -857,9 +836,7 @@ spyOn(foo, 'not'); // actual foo.not will not be called, execution stops</pre>
<span class="light fixedFont">{Function}</span> <b>specDefinitions</b>
</dt>
Creates a <em>disabled</em> Jasmine spec.
A convenience method that allows existing specs to be disabled temporarily during development.
<dd>function that defines several specs.</dd>
</dl>
@@ -908,7 +885,7 @@ A convenience method that allows existing specs to be disabled temporarily durin
</dt>
<dd>defines the preconditions and expectations of the spec</dd>
Documentation generated by <a href="http://www.jsdoctoolkit.org/" target="_blank">JsDoc Toolkit</a> 2.1.0 on Wed Oct 21 2009 09:25:31 GMT-0700 (PDT)
</dl>