Skip to content
This repository has been archived by the owner on Apr 12, 2024. It is now read-only.

Commit

Permalink
fix(ngMock): ensure mocked window still provides window.location func…
Browse files Browse the repository at this point in the history
…tionality
  • Loading branch information
matsko authored and mhevery committed Jun 18, 2013
1 parent cec4ce2 commit 07ef166
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/ngMock/angular-mocks.js
Original file line number Diff line number Diff line change
Expand Up @@ -640,6 +640,7 @@ angular.mock.createMockWindow = function() {
var mockWindow = {};
var setTimeoutQueue = [];

mockWindow.location = window.location;
mockWindow.document = window.document;
mockWindow.getComputedStyle = angular.bind(window, window.getComputedStyle);
mockWindow.scrollTo = angular.bind(window, window.scrollTo);
Expand Down

0 comments on commit 07ef166

Please sign in to comment.