aboutsummaryrefslogtreecommitdiffstats
path: root/test/ng
diff options
context:
space:
mode:
authorMisko Hevery2013-04-03 14:55:03 -0700
committerMisko Hevery2013-04-03 15:20:53 -0700
commitecdf119a76476f2a57105a3170be4075e43765c3 (patch)
treed9f147aaaddb9a2f0079c81be1e334425ee80153 /test/ng
parent820253f6708731388a47bc65124e2a457f0536d8 (diff)
downloadangular.js-ecdf119a76476f2a57105a3170be4075e43765c3.tar.bz2
fix(ngShow/ngHide): revert to display:'' for show
Regression introduced by ngAnimation SHA: 0b6f1ce5f89f47f9302ff1e8cd8f4b92f837c413
Diffstat (limited to 'test/ng')
-rw-r--r--test/ng/animatorSpec.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/ng/animatorSpec.js b/test/ng/animatorSpec.js
index d8ceffab..07bcb36c 100644
--- a/test/ng/animatorSpec.js
+++ b/test/ng/animatorSpec.js
@@ -50,7 +50,7 @@ describe("$animator", function() {
element.css('display','none');
expect(element.css('display')).toBe('none');
animator.show(element);
- expect(element.css('display')).toBe('block');
+ expect(element[0].style.display).toBe('');
}));
it("should animate the hide animation event", inject(function($animator, $compile, $rootScope) {
@@ -125,9 +125,9 @@ describe("$animator", function() {
element.css('display','none');
expect(element.css('display')).toBe('none');
animator.show(element);
- expect(element.css('display')).toBe('block');
+ expect(element[0].style.display).toBe('');
window.setTimeout.expect(1).process();
- expect(element.css('display')).toBe('block');
+ expect(element[0].style.display).toBe('');
}));
it("should animate the hide animation event", inject(function($animator, $rootScope) {