aboutsummaryrefslogtreecommitdiffstats
path: root/test/CompilerSpec.js
diff options
context:
space:
mode:
authorAndres Ornelas2010-08-04 11:45:42 -0700
committerAndres Ornelas2010-08-04 11:45:42 -0700
commitec12285c9d213a50b86b2ff8d968686acd6d1693 (patch)
tree94c0792946bfa461c4fab525b3758b06c6da9f9f /test/CompilerSpec.js
parentef88eb9a71ee7666029c4fb5eb731ce2e986cecc (diff)
parent89245f3a527415a80d46b37054b558454c314532 (diff)
downloadangular.js-ec12285c9d213a50b86b2ff8d968686acd6d1693.tar.bz2
Merge branch 'master' of github.com:angular/angular.js into future
Diffstat (limited to 'test/CompilerSpec.js')
-rw-r--r--test/CompilerSpec.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/CompilerSpec.js b/test/CompilerSpec.js
index 3736ff4e..1091337b 100644
--- a/test/CompilerSpec.js
+++ b/test/CompilerSpec.js
@@ -1,5 +1,5 @@
describe('compiler', function(){
- var compiler, textMarkup, directives, widgets, compile, log;
+ var compiler, markup, directives, widgets, compile, log;
beforeEach(function(){
log = "";
@@ -20,10 +20,10 @@ describe('compiler', function(){
}
};
- textMarkup = [];
+ markup = [];
attrMarkup = [];
widgets = extensionMap({}, 'widget');
- compiler = new Compiler(textMarkup, attrMarkup, directives, widgets);
+ compiler = new Compiler(markup, attrMarkup, directives, widgets);
compile = function(html){
var e = jqLite("<div>" + html + "</div>");
var scope = compiler.compile(e)(e);
@@ -94,7 +94,7 @@ describe('compiler', function(){
});
it('should process markup before directives', function(){
- textMarkup.push(function(text, textNode, parentNode) {
+ markup.push(function(text, textNode, parentNode) {
if (text == 'middle') {
expect(textNode.text()).toEqual(text);
parentNode.attr('hello', text);
@@ -126,7 +126,7 @@ describe('compiler', function(){
this.directives(true);
return noop;
};
- textMarkup.push(function(text, textNode, parent){
+ markup.push(function(text, textNode, parent){
if (text == '{{1+2}}')
parent.text('3');
});