From c46c5924c4a7c6131086429c6e0ccae8151137be Mon Sep 17 00:00:00 2001 From: Igor Minar Date: Tue, 2 Jul 2013 11:06:01 -0700 Subject: revert: test(ngRepeat): fix IE8 test compatibility issue This reverts commit 0c6fb665a4e2e1e7ceb11372153963658d4b53b1. The change invalidated the test because the point of the the test was to test that an element directive works. Changing it to attribute directive was wrong. --- test/ng/directive/ngRepeatSpec.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test') diff --git a/test/ng/directive/ngRepeatSpec.js b/test/ng/directive/ngRepeatSpec.js index e90e688e..58849d03 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: 'A', + restrict: 'E', 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