aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIgor Minar2013-07-01 14:29:37 -0700
committerIgor Minar2013-07-01 14:30:43 -0700
commit0c6fb665a4e2e1e7ceb11372153963658d4b53b1 (patch)
tree949b601fd0711d4393b13ac66d567f88b91cd41d
parent807394095b991357225a03d5fed81fea5c9a1abe (diff)
downloadangular.js-0c6fb665a4e2e1e7ceb11372153963658d4b53b1.tar.bz2
test(ngRepeat): fix IE8 test compatibility issue
-rw-r--r--test/ng/directive/ngRepeatSpec.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/ng/directive/ngRepeatSpec.js b/test/ng/directive/ngRepeatSpec.js
index 58849d03..e90e688e 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: 'E',
+ restrict: 'A',
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><replace-me-with-repeater></replace-me-with-repeater></div>')($rootScope);
+ element = $compile('<div><div replace-me-with-repeater></div></div>')($rootScope);
expect(element.text()).toBe('');
$rootScope.$apply();
expect(element.text()).toBe('123');