revert: test(ngRepeat): fix IE8 test compatibility issue

This reverts commit 0c6fb665a4.

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.
This commit is contained in:
Igor Minar 2013-07-02 11:06:01 -07:00
parent 4f0f243771
commit c46c5924c4

View file

@ -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', '<div ng-repeat="i in [1,2,3]">{{i}}</div>');
element = $compile('<div><div replace-me-with-repeater></div></div>')($rootScope);
element = $compile('<div><replace-me-with-repeater></replace-me-with-repeater></div>')($rootScope);
expect(element.text()).toBe('');
$rootScope.$apply();
expect(element.text()).toBe('123');