You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
I have tests for a directive that uses $window and ngAnimate. Since 1.4.0 (or 1.4.0-rc.0) I cannot mock $window without having document property set in $window.
Use document.body instead of $document[0].body. Enable mocking of $window
without having to add properties that ngAnimate uses internally.
Closesangular#11964
tjokimie
added a commit
to tjokimie/angular.js
that referenced
this issue
Jun 1, 2015
I have tests for a directive that uses
$window
andngAnimate
. Since 1.4.0 (or 1.4.0-rc.0) I cannot mock$window
without havingdocument
property set in$window
.This issue is due to
var bodyElement = jqLite($document[0].body);
inngAnimate
animateQueue.js
https://github.com/angular/angular.js/blob/master/src/ngAnimate/animateQueue.js#L108.I have a JSFiddle demonstrating this problem:
document
is failing in 1.4.0The text was updated successfully, but these errors were encountered: