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

test($location): ensure mock window can be wrapped by jqLite #12086

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions test/ng/locationSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -2330,6 +2330,9 @@ describe('$location', function() {
$windowProvider.$get = function() {
var win = {};
angular.extend(win, window);
// Work around Window `length` attribute which prevents jqLite() from
// wrapping around the Window node
delete win.length;
win.history = {
state: options.state || null,
replaceState: function(state, title, url) {
Expand Down