diff options
| author | Misko Hevery | 2012-01-12 11:06:10 -0800 |
|---|---|---|
| committer | Misko Hevery | 2012-01-12 13:40:07 -0800 |
| commit | d648d709f3edcac56132e9e2a84a0fc65f5b48ac (patch) | |
| tree | ac0ba5763838a4f4b880dc72f0cbcedc1b7abc05 /test/service/compilerSpec.js | |
| parent | 9a8dbfef5151e8e92dc010a597b670e7687ebe9b (diff) | |
| download | angular.js-d648d709f3edcac56132e9e2a84a0fc65f5b48ac.tar.bz2 | |
refactor(module): strict separation between module-config / app-runtime
Diffstat (limited to 'test/service/compilerSpec.js')
| -rw-r--r-- | test/service/compilerSpec.js | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/test/service/compilerSpec.js b/test/service/compilerSpec.js index ccf70aaf..6e6c211b 100644 --- a/test/service/compilerSpec.js +++ b/test/service/compilerSpec.js @@ -1,10 +1,10 @@ 'use strict'; describe('compiler', function() { - var compiler, textMmarkup, attrMarkup, directives, widgets, compile, log, $rootScope; + var textMarkup, attrMarkup, directives, widgets, compile, log; - beforeEach(inject(function($provide){ - textMmarkup = []; + beforeEach(module(function($provide){ + textMarkup = []; attrMarkup = []; widgets = extensionMap({}, 'widget'); directives = { @@ -26,7 +26,7 @@ describe('compiler', function() { }; log = ""; - $provide.value('$textMarkup', textMmarkup); + $provide.value('$textMarkup', textMarkup); $provide.value('$attrMarkup', attrMarkup); $provide.value('$directive', directives); $provide.value('$widget', widgets); @@ -138,7 +138,7 @@ describe('compiler', function() { it('should process markup before directives', inject(function($rootScope, $compile) { - textMmarkup.push(function(text, textNode, parentNode) { + textMarkup.push(function(text, textNode, parentNode) { if (text == 'middle') { expect(textNode.text()).toEqual(text); parentNode.attr('hello', text); @@ -176,7 +176,7 @@ describe('compiler', function() { this.directives(true); return noop; }; - textMmarkup.push(function(text, textNode, parent){ + textMarkup.push(function(text, textNode, parent){ if (text == '{{1+2}}') parent.text('3'); }); @@ -186,7 +186,7 @@ describe('compiler', function() { it('should allow multiple markups per text element', inject(function($rootScope, $compile) { - textMmarkup.push(function(text, textNode, parent){ + textMarkup.push(function(text, textNode, parent){ var index = text.indexOf('---'); if (index > -1) { textNode.after(text.substring(index + 3)); @@ -195,7 +195,7 @@ describe('compiler', function() { textNode.remove(); } }); - textMmarkup.push(function(text, textNode, parent){ + textMarkup.push(function(text, textNode, parent){ var index = text.indexOf('==='); if (index > -1) { textNode.after(text.substring(index + 3)); |
