diff --git a/test/ng/directive/ngIncludeSpec.js b/test/ng/directive/ngIncludeSpec.js index b712c130f207..131f881a5162 100644 --- a/test/ng/directive/ngIncludeSpec.js +++ b/test/ng/directive/ngIncludeSpec.js @@ -306,6 +306,26 @@ describe('ngInclude', function() { }); + it('should allow ngInclude on the same element as ngRepeat', function() { + inject(function($compile, $rootScope, $templateCache) { + $templateCache.put('a.html', '
a
'); + $templateCache.put('b.html', '
b
'); + $templateCache.put('c.html', '
c
'); + element = $compile( + '
' + + '
no!
' + + '
' + )($rootScope); + + $rootScope.item = 'x'; + $rootScope.items = [ 'a', 'b', 'c' ]; + $rootScope.$digest(); + + expect(element.text()).toBe('abc'); + }); + }); + + describe('autoscoll', function() { var autoScrollSpy;