From ecdf119a76476f2a57105a3170be4075e43765c3 Mon Sep 17 00:00:00 2001 From: Misko Hevery Date: Wed, 3 Apr 2013 14:55:03 -0700 Subject: fix(ngShow/ngHide): revert to display:'' for show Regression introduced by ngAnimation SHA: 0b6f1ce5f89f47f9302ff1e8cd8f4b92f837c413--- test/ng/animatorSpec.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'test') 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) { -- cgit v1.2.3