From 0c6fb665a4e2e1e7ceb11372153963658d4b53b1 Mon Sep 17 00:00:00 2001 From: Igor Minar Date: Mon, 1 Jul 2013 14:29:37 -0700 Subject: test(ngRepeat): fix IE8 test compatibility issue --- test/ng/directive/ngRepeatSpec.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/ng/directive') diff --git a/test/ng/directive/ngRepeatSpec.js b/test/ng/directive/ngRepeatSpec.js index 58849d03..e90e688e 100644 --- a/test/ng/directive/ngRepeatSpec.js +++ b/test/ng/directive/ngRepeatSpec.js @@ -527,13 +527,13 @@ describe('ngRepeat', function() { inject(function($templateCache, $compile, $rootScope) { $compileProvider.directive('replaceMeWithRepeater', function() { return { - restrict: 'E', + restrict: 'A', replace: true, templateUrl: 'replace-me-with-repeater.html' }; }); $templateCache.put('replace-me-with-repeater.html', '
{{i}}
'); - element = $compile('
')($rootScope); + element = $compile('
')($rootScope); expect(element.text()).toBe(''); $rootScope.$apply(); expect(element.text()).toBe('123'); -- cgit v1.2.3