From 58f121a5c293ed57043e22ed526fdf99642fca81 Mon Sep 17 00:00:00 2001 From: Igor Minar Date: Fri, 10 Aug 2012 22:24:42 -0700 Subject: feat($interpolate): expose start/end symbols in run phase previously the startSymbol() and endSymbol() getters were exposed only via provider in the config phase --- test/ng/interpolateSpec.js | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'test/ng/interpolateSpec.js') 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('))'); + })); }); }); -- cgit v1.2.3