diff options
| author | Igor Minar | 2012-08-10 22:24:42 -0700 | 
|---|---|---|
| committer | Igor Minar | 2012-08-13 12:36:14 -0700 | 
| commit | 23abb2640526c44265bcc27bd12272a0c4f2f567 (patch) | |
| tree | 730cfeda5397cc23f8b57c12ee55aa65b1184f4e /test | |
| parent | fd55bc8e1dd666693e123660f185a5e6b757ea24 (diff) | |
| download | angular.js-23abb2640526c44265bcc27bd12272a0c4f2f567.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')
| -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('))'); +    }));    });  });  | 
