aboutsummaryrefslogtreecommitdiffstats
path: root/test/testabilityPatch.js
diff options
context:
space:
mode:
authorMisko Hevery2013-04-11 22:39:15 -0700
committerMisko Hevery2013-04-11 23:06:07 -0700
commit570463a465fae02efc33e5a1fa963437cdc275dd (patch)
treefde71c8e537b0c8985ba5d0f920f8fc67ef2585a /test/testabilityPatch.js
parent3c3247fe174ce408459bd018c9d83e84490789f5 (diff)
downloadangular.js-570463a465fae02efc33e5a1fa963437cdc275dd.tar.bz2
fix(ngAnimate): prevent animation on initial page load
Diffstat (limited to 'test/testabilityPatch.js')
-rw-r--r--test/testabilityPatch.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/testabilityPatch.js b/test/testabilityPatch.js
index cef00993..a4d4b46f 100644
--- a/test/testabilityPatch.js
+++ b/test/testabilityPatch.js
@@ -24,15 +24,17 @@ beforeEach(function() {
// reset to jQuery or default to us.
bindJQuery();
- jqLite(document.body).html('');
+ jqLite(document.body).html('').removeData();
});
afterEach(function() {
if (this.$injector) {
var $rootScope = this.$injector.get('$rootScope');
+ var $rootElement = this.$injector.get('$rootElement');
var $log = this.$injector.get('$log');
// release the injector
dealoc($rootScope);
+ dealoc($rootElement);
// check $log mock
$log.assertEmpty && $log.assertEmpty();