diff options
| author | Misko Hevery | 2010-04-06 14:04:08 -0700 |
|---|---|---|
| committer | Misko Hevery | 2010-04-06 14:04:08 -0700 |
| commit | ee327a1f4f75f57c2a2c6166520c092d4942ffe0 (patch) | |
| tree | c63825342f1836ab667d2cabfb178e98e96240ec /test/directivesSpec.js | |
| parent | e6460685869e16b5016de975fd0ba15a7e436951 (diff) | |
| download | angular.js-ee327a1f4f75f57c2a2c6166520c092d4942ffe0.tar.bz2 | |
few fixes to make tests pass with jquery
Diffstat (limited to 'test/directivesSpec.js')
| -rw-r--r-- | test/directivesSpec.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/directivesSpec.js b/test/directivesSpec.js index 0a7e3c18..7504bf6b 100644 --- a/test/directivesSpec.js +++ b/test/directivesSpec.js @@ -142,19 +142,19 @@ describe("directives", function(){ it('should ng-show', function(){ var scope = compile('<div ng-hide="hide"></div>'); scope.$eval(); - expect(element.css('display')).toEqual(''); + expect(isVisible(element)).toEqual(true); scope.$set('hide', true); scope.$eval(); - expect(element.css('display')).toEqual('none'); + expect(isVisible(element)).toEqual(false); }); it('should ng-hide', function(){ var scope = compile('<div ng-show="show"></div>'); scope.$eval(); - expect(element.css('display')).toEqual('none'); + expect(isVisible(element)).toEqual(false); scope.$set('show', true); scope.$eval(); - expect(element.css('display')).toEqual(''); + expect(isVisible(element)).toEqual(true); }); it('should ng-controller', function(){ |
