aboutsummaryrefslogtreecommitdiffstats
path: root/test/ng/compileSpec.js
diff options
context:
space:
mode:
authorIgor Minar2013-03-13 16:29:26 -0700
committerMisko Hevery2013-06-27 21:30:24 -0700
commit15e1a29cd08993b599f390e83a249ec17f753972 (patch)
treecaa9eb0204d123b0c3c2d2a427bc580beddfefda /test/ng/compileSpec.js
parent344e195c60731f18529dacd35b478afb9dbeddf1 (diff)
downloadangular.js-15e1a29cd08993b599f390e83a249ec17f753972.tar.bz2
fix(compiler): corrects component transclusion on compilation root.
Closes# 2155
Diffstat (limited to 'test/ng/compileSpec.js')
-rwxr-xr-xtest/ng/compileSpec.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/ng/compileSpec.js b/test/ng/compileSpec.js
index 672a704d..0ef7e8bf 100755
--- a/test/ng/compileSpec.js
+++ b/test/ng/compileSpec.js
@@ -534,7 +534,7 @@ describe('$compile', function() {
expect(div.hasClass('log')).toBe(true);
expect(div.css('width')).toBe('10px');
expect(div.css('height')).toBe('20px');
- expect(div.attr('replace')).toEqual('');
+ expect(div.attr('replace')).toEqual(undefined);
expect(div.attr('high-log')).toEqual('');
}));
@@ -856,7 +856,7 @@ describe('$compile', function() {
$rootScope.$digest();
expect(sortedHtml(element)).
- toEqual('<div><b class="hello"><span replace="">Hello, Elvis!</span></b></div>');
+ toEqual('<div><b class="hello"><span>Hello, Elvis!</span></b></div>');
}));
@@ -868,7 +868,7 @@ describe('$compile', function() {
$rootScope.$digest();
expect(sortedHtml(element)).
- toEqual('<span replace="">Hello, Elvis!</span>');
+ toEqual('<span>Hello, Elvis!</span>');
}));
@@ -1077,7 +1077,7 @@ describe('$compile', function() {
var div = element.find('div');
expect(div.attr('i-first')).toEqual('');
- expect(div.attr('i-second')).toEqual('');
+ expect(div.attr('i-second')).toEqual(undefined);
expect(div.attr('i-third')).toEqual('');
expect(div.attr('i-last')).toEqual('');
@@ -1127,7 +1127,7 @@ describe('$compile', function() {
var div = element.find('div');
expect(div.attr('i-first')).toEqual('');
- expect(div.attr('i-second')).toEqual('');
+ expect(div.attr('i-second')).toEqual(undefined);
expect(div.attr('i-third')).toEqual('');
expect(div.attr('i-last')).toEqual('');