diff options
| author | Misko Hevery | 2010-03-31 13:57:25 -0700 |
|---|---|---|
| committer | Misko Hevery | 2010-03-31 13:57:25 -0700 |
| commit | 35a91085004e31f786df1e0011bc26ed0142ab4d (patch) | |
| tree | 030289973e8ae5a88e86fc77d878dde40b72ddc5 /test/directivesSpec.js | |
| parent | b5b8f63e1ebc75d09c6faf8dbad6497880deed47 (diff) | |
| download | angular.js-35a91085004e31f786df1e0011bc26ed0142ab4d.tar.bz2 | |
all tests green, some dissabled
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 4eef1ac3..cfee86a0 100644 --- a/test/directivesSpec.js +++ b/test/directivesSpec.js @@ -105,8 +105,8 @@ describe("directives", function(){ expect(scope.$get('count')).toEqual(1); }); - it('should ng-action', function(){ - var scope = compile('<div ng-action="clicked = true"></div>'); + it('should ng-click', function(){ + var scope = compile('<div ng-click="clicked = true"></div>'); scope.$eval(); expect(scope.$get('clicked')).toBeFalsy(); @@ -128,9 +128,9 @@ describe("directives", function(){ var e1 = jqLite(element[0].childNodes[1]); var e2 = jqLite(element[0].childNodes[2]); expect(e1.hasClass('existing')).toBeTruthy(); - expect(e1.hasClass('even')).toBeTruthy(); + expect(e1.hasClass('odd')).toBeTruthy(); expect(e2.hasClass('existing')).toBeTruthy(); - expect(e2.hasClass('odd')).toBeTruthy(); + expect(e2.hasClass('even')).toBeTruthy(); }); it('should ng-style', function(){ |
