diff options
| author | Misko Hevery | 2010-10-26 15:35:58 -0700 |
|---|---|---|
| committer | Misko Hevery | 2010-10-26 16:33:59 -0700 |
| commit | 9c0225512c63ebfc37e6408cc155d9da1fe682c9 (patch) | |
| tree | 4973f6c57b801c71cbc93d7d993887ff6d3f9558 /test/scenario/output/jsonSpec.js | |
| parent | 40d7e66f408eaaa66efd8d7934ab2eb3324236a1 (diff) | |
| download | angular.js-9c0225512c63ebfc37e6408cc155d9da1fe682c9.tar.bz2 | |
fixes IE related failures, and form submit event handling in ie
Diffstat (limited to 'test/scenario/output/jsonSpec.js')
| -rw-r--r-- | test/scenario/output/jsonSpec.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/test/scenario/output/jsonSpec.js b/test/scenario/output/jsonSpec.js index b3592608..afc74a21 100644 --- a/test/scenario/output/jsonSpec.js +++ b/test/scenario/output/jsonSpec.js @@ -2,7 +2,7 @@ describe('angular.scenario.output.json', function() { var output, context; var runner, $window; var spec, step; - + beforeEach(function() { $window = {}; context = _jQuery('<div></div>'); @@ -12,22 +12,22 @@ describe('angular.scenario.output.json', function() { name: 'test spec', definition: { id: 10, - name: 'describe', + name: 'describe' } }; step = { name: 'some step', - line: function() { return 'unknown:-1'; }, + line: function() { return 'unknown:-1'; } }; }); - + it('should put json in context on RunnerEnd', function() { runner.emit('SpecBegin', spec); runner.emit('StepBegin', spec, step); runner.emit('StepEnd', spec, step); runner.emit('SpecEnd', spec); runner.emit('RunnerEnd'); - + expect(angular.fromJson(context.html()).children['describe'] .specs['test spec'].status).toEqual('success'); }); |
