From cbb3ce2c309052b951d0cc87e4c6daa9c48a3dd8 Mon Sep 17 00:00:00 2001 From: Rhys Brett-bowen Date: Mon, 18 Nov 2013 10:02:55 -0500 Subject: fix(ngRepeat): allow multiline expressions allow and pass through new line characters when checking passed in expression Closes #5000 --- test/ng/directive/ngRepeatSpec.js | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'test/ng/directive') diff --git a/test/ng/directive/ngRepeatSpec.js b/test/ng/directive/ngRepeatSpec.js index bdc0b8f5..2d70d4a4 100644 --- a/test/ng/directive/ngRepeatSpec.js +++ b/test/ng/directive/ngRepeatSpec.js @@ -177,6 +177,22 @@ describe('ngRepeat', function() { }); + it('should allow expressions over multiple lines', function() { + scope.isTrue = function() { + return true; + }; + element = $compile( + '