aboutsummaryrefslogtreecommitdiffstats
path: root/docs/component-spec/annotationsSpec.js
diff options
context:
space:
mode:
authorVojta Jina2013-08-13 23:58:53 -0700
committerVojta Jina2013-08-14 10:24:17 -0700
commit670ca75c8ab3072af289ad6b136208c6ac2e0aa7 (patch)
treed3dbb6425105782813c1df8044223986a505d459 /docs/component-spec/annotationsSpec.js
parentb73c46c2fd530e6a5c483bbd39031a99f8ab1b39 (diff)
downloadangular.js-670ca75c8ab3072af289ad6b136208c6ac2e0aa7.tar.bz2
test(docs): add missing createMockWindow()
Add missing angular.mock.createMockWindow (removed in 0dd062231a4d495133fd907eeae95c566380c6e1), that the docs tests were using.
Diffstat (limited to 'docs/component-spec/annotationsSpec.js')
-rw-r--r--docs/component-spec/annotationsSpec.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/component-spec/annotationsSpec.js b/docs/component-spec/annotationsSpec.js
index 7dd5b696..edc458cd 100644
--- a/docs/component-spec/annotationsSpec.js
+++ b/docs/component-spec/annotationsSpec.js
@@ -68,7 +68,7 @@ describe('Docs Annotations', function() {
var $scope, parent, element, url, window;
beforeEach(function() {
module(function($provide, $animateProvider) {
- $provide.value('$window', window = angular.mock.createMockWindow());
+ $provide.value('$window', window = createMockWindow());
$animateProvider.register('.foldout', function($timeout) {
return {
enter : function(element, done) {
@@ -161,7 +161,7 @@ describe('Docs Annotations', function() {
var window, $scope, ctrl;
beforeEach(function() {
module(function($provide, $animateProvider) {
- $provide.value('$window', window = angular.mock.createMockWindow());
+ $provide.value('$window', window = createMockWindow());
});
inject(function($rootScope, $controller, $location, $cookies, sections) {
$scope = $rootScope.$new();