aboutsummaryrefslogtreecommitdiffstats
path: root/test/CompilerSpec.js
diff options
context:
space:
mode:
authorMisko Hevery2010-04-07 10:29:47 -0700
committerMisko Hevery2010-04-07 10:29:47 -0700
commit82cb18db28ea7381e5168489207bfa23c059af0c (patch)
treeb4710ab1c2c0593ca9228cbb67495846d72d696e /test/CompilerSpec.js
parent0df93fd49c1687b2eddaa79faa1c0adbef82bf72 (diff)
parentee327a1f4f75f57c2a2c6166520c092d4942ffe0 (diff)
downloadangular.js-82cb18db28ea7381e5168489207bfa23c059af0c.tar.bz2
Merge branch 'directives' of github.com:angular/angular.js into directives
Diffstat (limited to 'test/CompilerSpec.js')
-rw-r--r--test/CompilerSpec.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/CompilerSpec.js b/test/CompilerSpec.js
index 9922070f..b9529e6e 100644
--- a/test/CompilerSpec.js
+++ b/test/CompilerSpec.js
@@ -72,7 +72,7 @@ describe('compiler', function(){
var scope = compile('<span hello="misko" stop="true"><span hello="adam"/></span>');
expect(log).toEqual("hello misko");
});
-
+
it('should allow creation of templates', function(){
directives.duplicate = function(expr, element){
element.replaceWith(document.createComment("marker"));
@@ -97,7 +97,7 @@ describe('compiler', function(){
if (text == 'middle') {
expect(textNode.text()).toEqual(text);
parentNode.attr('hello', text);
- textNode.text('replaced');
+ textNode[0].textContent = 'replaced';
}
});
var scope = compile('before<span>middle</span>after');