mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-03-30 13:00:29 +00:00
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:
parent
4f0f243771
commit
c46c5924c4
1 changed files with 2 additions and 2 deletions
|
|
@ -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');
|
||||
|
|
|
|||
Loading…
Reference in a new issue