aboutsummaryrefslogtreecommitdiffstats
path: root/test/scenario/RunnerSpec.js
diff options
context:
space:
mode:
authorMisko Hevery2010-10-23 13:10:42 -0700
committerMisko Hevery2010-10-23 13:12:45 -0700
commit6ddcf918610c1dd094a964fc03e129a67f17dfaa (patch)
treeba690c591b40c97f86d0aef9a2a160e46356a7f0 /test/scenario/RunnerSpec.js
parent8a867cee229b78f5bfde6a05fdbe0d7d3d608e11 (diff)
downloadangular.js-6ddcf918610c1dd094a964fc03e129a67f17dfaa.tar.bz2
Fix test which was causing the Chrome runner to fail. Upgraded JSTD to latest. Cleanup whitespace.
Diffstat (limited to 'test/scenario/RunnerSpec.js')
-rw-r--r--test/scenario/RunnerSpec.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/test/scenario/RunnerSpec.js b/test/scenario/RunnerSpec.js
index d34a228c..1641a8f1 100644
--- a/test/scenario/RunnerSpec.js
+++ b/test/scenario/RunnerSpec.js
@@ -16,7 +16,7 @@ MockSpecRunner.prototype.addFuture = function(name, fn, line) {
describe('angular.scenario.Runner', function() {
var $window;
var runner;
-
+
beforeEach(function() {
// Trick to get the scope out of a DSL statement
angular.scenario.dsl('dslAddFuture', function() {
@@ -42,12 +42,12 @@ describe('angular.scenario.Runner', function() {
};
runner = new angular.scenario.Runner($window);
});
-
+
afterEach(function() {
delete angular.scenario.dsl.dslScope;
delete angular.scenario.dsl.dslChain;
});
-
+
it('should publish the functions in the public API', function() {
angular.foreach(runner.api, function(fn, name) {
var func;
@@ -57,7 +57,7 @@ describe('angular.scenario.Runner', function() {
expect(angular.isFunction(func)).toBeTruthy();
});
});
-
+
it('should construct valid describe trees with public API', function() {
var before = [];
var after = [];
@@ -85,7 +85,7 @@ describe('angular.scenario.Runner', function() {
expect(specs[2].definition.parent).toEqual(runner.rootDescribe);
expect(specs[0].definition.parent).toEqual(specs[2].definition.children[0]);
});
-
+
it('should publish the DSL statements to the $window', function() {
$window.describe('describe', function() {
$window.it('1', function() {
@@ -94,7 +94,7 @@ describe('angular.scenario.Runner', function() {
});
runner.run(null/*ui*/, null/*application*/, MockSpecRunner, rethrow);
});
-
+
it('should create a new scope for each DSL chain', function() {
$window.describe('describe', function() {
$window.it('1', function() {