Skip to content

Commit c46c592

Browse files
committed
revert: test(ngRepeat): fix IE8 test compatibility issue
This reverts commit 0c6fb66. 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.
1 parent 4f0f243 commit c46c592

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/ng/directive/ngRepeatSpec.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -527,13 +527,13 @@ describe('ngRepeat', function() {
527527
inject(function($templateCache, $compile, $rootScope) {
528528
$compileProvider.directive('replaceMeWithRepeater', function() {
529529
return {
530-
restrict: 'A',
530+
restrict: 'E',
531531
replace: true,
532532
templateUrl: 'replace-me-with-repeater.html'
533533
};
534534
});
535535
$templateCache.put('replace-me-with-repeater.html', '<div ng-repeat="i in [1,2,3]">{{i}}</div>');
536-
element = $compile('<div><div replace-me-with-repeater></div></div>')($rootScope);
536+
element = $compile('<div><replace-me-with-repeater></replace-me-with-repeater></div>')($rootScope);
537537
expect(element.text()).toBe('');
538538
$rootScope.$apply();
539539
expect(element.text()).toBe('123');

0 commit comments

Comments
 (0)