From 6ddcf918610c1dd094a964fc03e129a67f17dfaa Mon Sep 17 00:00:00 2001 From: Misko Hevery Date: Sat, 23 Oct 2010 13:10:42 -0700 Subject: Fix test which was causing the Chrome runner to fail. Upgraded JSTD to latest. Cleanup whitespace. --- test/scenario/SpecRunnerSpec.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'test/scenario/SpecRunnerSpec.js') diff --git a/test/scenario/SpecRunnerSpec.js b/test/scenario/SpecRunnerSpec.js index dd7a1b72..921d6853 100644 --- a/test/scenario/SpecRunnerSpec.js +++ b/test/scenario/SpecRunnerSpec.js @@ -49,7 +49,7 @@ ApplicationMock.prototype = { describe('angular.scenario.SpecRunner', function() { var $window; var runner; - + function createSpec(name, body) { return { name: name, @@ -93,8 +93,8 @@ describe('angular.scenario.SpecRunner', function() { it('should execute spec function and notify UI', function() { var finished; var ui = new UIMock(); - var spec = createSpec('test spec', function() { - this.test = 'some value'; + var spec = createSpec('test spec', function() { + this.test = 'some value'; }); runner.addFuture('test future', function(done) { done(); @@ -115,7 +115,7 @@ describe('angular.scenario.SpecRunner', function() { it('should execute notify UI on spec setup error', function() { var finished; var ui = new UIMock(); - var spec = createSpec('test spec', function() { + var spec = createSpec('test spec', function() { throw 'message'; }); runner.run(ui, spec, function() { @@ -166,7 +166,7 @@ describe('angular.scenario.SpecRunner', function() { 'spec finish:' ]); }); - + it('should run after handlers even if error in body of spec', function() { var finished, after; var ui = new UIMock(); -- cgit v1.2.3