diff options
| author | Misko Hevery | 2012-03-23 14:03:24 -0700 |
|---|---|---|
| committer | Misko Hevery | 2012-03-28 11:16:35 -0700 |
| commit | 2430f52bb97fa9d682e5f028c977c5bf94c5ec38 (patch) | |
| tree | e7529b741d70199f36d52090b430510bad07f233 /test/scenario/output/objectSpec.js | |
| parent | 944098a4e0f753f06b40c73ca3e79991cec6c2e2 (diff) | |
| download | angular.js-2430f52bb97fa9d682e5f028c977c5bf94c5ec38.tar.bz2 | |
chore(module): move files around in preparation for more modules
Diffstat (limited to 'test/scenario/output/objectSpec.js')
| -rw-r--r-- | test/scenario/output/objectSpec.js | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/test/scenario/output/objectSpec.js b/test/scenario/output/objectSpec.js deleted file mode 100644 index d92c939d..00000000 --- a/test/scenario/output/objectSpec.js +++ /dev/null @@ -1,40 +0,0 @@ -'use strict'; - -describe('angular.scenario.output.object', function() { - var output; - var runner, model, $window; - var spec, step; - - beforeEach(function() { - $window = {}; - runner = new angular.scenario.testing.MockRunner(); - model = new angular.scenario.ObjectModel(runner); - runner.$window = $window; - output = angular.scenario.output.object(null, runner, model); - spec = { - name: 'test spec', - definition: { - id: 10, - name: 'describe', - children: [] - } - }; - step = { - name: 'some step', - line: function() { return 'unknown:-1'; } - }; - }); - - it('should create a global variable $result', function() { - expect($window.$result).toBeDefined(); - }); - - it('should maintain live state in $result', function() { - runner.emit('SpecBegin', spec); - runner.emit('StepBegin', spec, step); - runner.emit('StepEnd', spec, step); - - expect($window.$result.children['describe'] - .specs['test spec'].steps[0].duration).toBeDefined(); - }); -}); |
