diff options
| author | Misko Hevery | 2010-10-23 13:10:42 -0700 |
|---|---|---|
| committer | Misko Hevery | 2010-10-23 13:12:45 -0700 |
| commit | 6ddcf918610c1dd094a964fc03e129a67f17dfaa (patch) | |
| tree | ba690c591b40c97f86d0aef9a2a160e46356a7f0 /test/scenario/SpecRunnerSpec.js | |
| parent | 8a867cee229b78f5bfde6a05fdbe0d7d3d608e11 (diff) | |
| download | angular.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/SpecRunnerSpec.js')
| -rw-r--r-- | test/scenario/SpecRunnerSpec.js | 10 |
1 files changed, 5 insertions, 5 deletions
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(); |
