diff options
| author | Pete Bacon Darwin | 2012-11-19 10:01:53 +0000 | 
|---|---|---|
| committer | Misko Hevery | 2013-02-14 21:36:59 -0800 | 
| commit | bb8448c011127306df08c7479b66e5afe7a0fa94 (patch) | |
| tree | 36a5f069b3653d0716f57ee2fb265e4878b3edd6 /test/ng/compileSpec.js | |
| parent | 2ed53087d7dd06d728e333a449265f7685275548 (diff) | |
| download | angular.js-bb8448c011127306df08c7479b66e5afe7a0fa94.tar.bz2 | |
fix(compile): Initialize interpolated attributes before directive linking
Diffstat (limited to 'test/ng/compileSpec.js')
| -rw-r--r-- | test/ng/compileSpec.js | 5 | 
1 files changed, 3 insertions, 2 deletions
| diff --git a/test/ng/compileSpec.js b/test/ng/compileSpec.js index 3b69f609..da8f2f8c 100644 --- a/test/ng/compileSpec.js +++ b/test/ng/compileSpec.js @@ -1381,9 +1381,10 @@ describe('$compile', function() {      })); -    it('should set interpolated attrs to undefined', inject(function($rootScope, $compile) { +    it('should set interpolated attrs to initial interpolation value', inject(function($rootScope, $compile) { +      $rootScope.whatever = 'test value';        $compile('<div some-attr="{{whatever}}" observer></div>')($rootScope); -      expect(directiveAttrs.someAttr).toBeUndefined(); +      expect(directiveAttrs.someAttr).toBe($rootScope.whatever);      })); | 
