diff options
| author | Igor Minar | 2012-08-10 22:24:42 -0700 | 
|---|---|---|
| committer | Igor Minar | 2012-08-13 09:48:22 -0700 | 
| commit | 58f121a5c293ed57043e22ed526fdf99642fca81 (patch) | |
| tree | 21c5dc33e83c9c06a9d28efd602e96b82fd059d2 /test/ng/interpolateSpec.js | |
| parent | cf6023ef2215ef9f7be970413763abb72253f179 (diff) | |
| download | angular.js-58f121a5c293ed57043e22ed526fdf99642fca81.tar.bz2 | |
feat($interpolate): expose start/end symbols in run phase
previously the startSymbol() and endSymbol() getters were exposed only via provider
in the config phase
Diffstat (limited to 'test/ng/interpolateSpec.js')
| -rw-r--r-- | test/ng/interpolateSpec.js | 10 | 
1 files changed, 10 insertions, 0 deletions
| diff --git a/test/ng/interpolateSpec.js b/test/ng/interpolateSpec.js index 88e4ae75..20214445 100644 --- a/test/ng/interpolateSpec.js +++ b/test/ng/interpolateSpec.js @@ -113,6 +113,11 @@ describe('$interpolate', function() {      })); +    it('should expose the startSymbol in run phase', inject(function($interpolate) { +      expect($interpolate.startSymbol()).toBe('(('); +    })); + +      it('should not get confused by matching start and end symbols', function() {        module(function($interpolateProvider) {          $interpolateProvider.startSymbol('--'); @@ -139,5 +144,10 @@ describe('$interpolate', function() {      it('should expose the endSymbol in config phase', module(function($interpolateProvider) {        expect($interpolateProvider.endSymbol()).toBe('))');      })); + + +    it('should expose the endSymbol in run phase', inject(function($interpolate) { +      expect($interpolate.endSymbol()).toBe('))'); +    }));    });  }); | 
