diff options
| author | Misko Hevery | 2010-07-15 14:16:04 -0700 |
|---|---|---|
| committer | Misko Hevery | 2010-07-15 14:16:04 -0700 |
| commit | 7cef4358aea6f3cfa18dcfb8145d7bc0560bf157 (patch) | |
| tree | a207997545bedbd86af6d1b68f573da7398f30aa /test/directivesSpec.js | |
| parent | 1de82283dbf1bed2fc04700584dc1123b1e159fe (diff) | |
| download | angular.js-7cef4358aea6f3cfa18dcfb8145d7bc0560bf157.tar.bz2 | |
fixed build
Diffstat (limited to 'test/directivesSpec.js')
| -rw-r--r-- | test/directivesSpec.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/directivesSpec.js b/test/directivesSpec.js index fb1e868a..dffc8906 100644 --- a/test/directivesSpec.js +++ b/test/directivesSpec.js @@ -73,12 +73,12 @@ describe("directives", function(){ }); it('should have $element set to current bind element', function(){ - var innerText; + var innerText = 'blank'; angularFilter.myFilter = function(text){ innerText = this.$element.text(); return text; }; - var scope = compile('<div>before<div ng:bind-template="{{\'HELLO\'|myFilter}}">INNER</div>after</div>'); + var scope = compile('<div>before<span ng:bind-template="{{\'HELLO\'|myFilter}}">INNER</span>after</div>'); expect(scope.$element.text()).toEqual("beforeHELLOafter"); expect(innerText).toEqual('INNER'); }); @@ -206,7 +206,7 @@ describe("directives", function(){ expect(element.hasClass('ng-exception')).toBeFalsy(); }); - it('should preserve and remove previus style', function(){ + it('should preserve and remove previous style', function(){ var scope = compile('<div style="color:red;" ng:style="myStyle"></div>'); scope.$eval(); expect(getStyle(element)).toEqual({color:'red'}); |
