diff options
| author | Igor Minar | 2013-07-02 11:06:01 -0700 |
|---|---|---|
| committer | Igor Minar | 2013-07-02 11:07:59 -0700 |
| commit | c46c5924c4a7c6131086429c6e0ccae8151137be (patch) | |
| tree | fe643cdb996b307706412c54ca59b1e85e459368 /test/ng/directive/ngRepeatSpec.js | |
| parent | 4f0f2437712a5ae3e79780e2d6fa32b70abe1a52 (diff) | |
| download | angular.js-c46c5924c4a7c6131086429c6e0ccae8151137be.tar.bz2 | |
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.
Diffstat (limited to 'test/ng/directive/ngRepeatSpec.js')
| -rw-r--r-- | test/ng/directive/ngRepeatSpec.js | 4 |
1 files changed, 2 insertions, 2 deletions
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', '<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'); |
