diff options
| author | Misko Hevery | 2010-04-08 13:43:40 -0700 |
|---|---|---|
| committer | Misko Hevery | 2010-04-08 13:43:40 -0700 |
| commit | c4ef1f2fdd73bdaeda879e596d3d96e4e68cb6fd (patch) | |
| tree | 3fc1943a4599a764aef9a41d995246bb0e48f463 /test/directivesSpec.js | |
| parent | e0ad7dfcd47196d0aa9271e84b2c4ac26cfda3f4 (diff) | |
| download | angular.js-c4ef1f2fdd73bdaeda879e596d3d96e4e68cb6fd.tar.bz2 | |
tests failing jstd to show cory
Diffstat (limited to 'test/directivesSpec.js')
| -rw-r--r-- | test/directivesSpec.js | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/test/directivesSpec.js b/test/directivesSpec.js index a92e98ee..0af61997 100644 --- a/test/directivesSpec.js +++ b/test/directivesSpec.js @@ -141,20 +141,22 @@ describe("directives", function(){ it('should ng-show', function(){ var scope = compile('<div ng-hide="hide"></div>'); + jqLite(document.body).append(scope.$element); scope.$eval(); - expect(isVisible(element)).toEqual(true); + expect(isVisible(scope.$element)).toEqual(true); scope.$set('hide', true); scope.$eval(); - expect(isVisible(element)).toEqual(false); + expect(isVisible(scope.$element)).toEqual(false); }); it('should ng-hide', function(){ var scope = compile('<div ng-show="show"></div>'); + jqLite(document.body).append(scope.$element); scope.$eval(); - expect(isVisible(element)).toEqual(false); + expect(isVisible(scope.$element)).toEqual(false); scope.$set('show', true); scope.$eval(); - expect(isVisible(element)).toEqual(true); + expect(isVisible(scope.$element)).toEqual(true); }); it('should ng-controller', function(){ |
