diff options
| author | Igor Minar | 2013-08-14 12:02:28 -0700 | 
|---|---|---|
| committer | Igor Minar | 2013-08-14 12:03:48 -0700 | 
| commit | 96bbf729ddb246f46e5fde7bb105a28e0cfde54b (patch) | |
| tree | 3e5ab54ff156432f857e3bfa4397e246a1aabc73 /docs/component-spec | |
| parent | 7215afa21c91c33c924a5aba7f3a704983642897 (diff) | |
| download | angular.js-96bbf729ddb246f46e5fde7bb105a28e0cfde54b.tar.bz2 | |
test(docs): don't mock out window unnecessarily
Diffstat (limited to 'docs/component-spec')
| -rw-r--r-- | docs/component-spec/annotationsSpec.js | 9 | ||||
| -rw-r--r-- | docs/component-spec/versionJumpSpec.js | 2 | 
2 files changed, 3 insertions, 8 deletions
| diff --git a/docs/component-spec/annotationsSpec.js b/docs/component-spec/annotationsSpec.js index edc458cd..6dcde906 100644 --- a/docs/component-spec/annotationsSpec.js +++ b/docs/component-spec/annotationsSpec.js @@ -65,10 +65,9 @@ describe('Docs Annotations', function() {    describe('foldout directive', function() { -    var $scope, parent, element, url, window; +    var $scope, parent, element, url;      beforeEach(function() {        module(function($provide, $animateProvider) { -        $provide.value('$window', window = createMockWindow());          $animateProvider.register('.foldout', function($timeout) {            return {              enter : function(element, done) { @@ -158,17 +157,13 @@ describe('Docs Annotations', function() {    describe('DocsController fold', function() { -    var window, $scope, ctrl; +    var $scope, ctrl;      beforeEach(function() { -      module(function($provide, $animateProvider) { -        $provide.value('$window', window = createMockWindow()); -      });        inject(function($rootScope, $controller, $location, $cookies, sections) {          $scope = $rootScope.$new();          ctrl = $controller('DocsController',{            $scope : $scope,            $location : $location, -          $window : window,            $cookies : $cookies,            sections : sections          }); diff --git a/docs/component-spec/versionJumpSpec.js b/docs/component-spec/versionJumpSpec.js index de81de97..2e74a2ff 100644 --- a/docs/component-spec/versionJumpSpec.js +++ b/docs/component-spec/versionJumpSpec.js @@ -84,7 +84,7 @@ describe('DocsApp', function() {          $scope.jumpToDocsVersion('2.1.3');          expect(window.location).toBe('http://code.angularjs.org/2.1.3/docs'); -      });  +      });        it('should jump to the older versions of current docs for version >= 1.0.2', function() {          $scope.jumpToDocsVersion('1.0.1'); | 
