diff options
| author | Igor Minar | 2012-03-09 00:00:05 -0800 |
|---|---|---|
| committer | Igor Minar | 2012-03-09 16:14:26 -0800 |
| commit | f4d338d393dabb49182d40b4fe90c4d1b51621c0 (patch) | |
| tree | 6c20fbef9865869e9db44f27c53aec11f1e30d5e /test/AngularSpec.js | |
| parent | 0bfaa579c04d1b7cd21fbe16bfbc47a684f223b3 (diff) | |
| download | angular.js-f4d338d393dabb49182d40b4fe90c4d1b51621c0.tar.bz2 | |
chore(*): refactor all ng: to ng-
Diffstat (limited to 'test/AngularSpec.js')
| -rw-r--r-- | test/AngularSpec.js | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/test/AngularSpec.js b/test/AngularSpec.js index 9d7bda94..7e070761 100644 --- a/test/AngularSpec.js +++ b/test/AngularSpec.js @@ -317,15 +317,15 @@ describe('angular', function() { }); - it('should look for ng:app directive in id', function() { - var appElement = jqLite('<div id="ng:app" data-ng-app="ABC"></div>')[0]; + it('should look for ng-app directive in id', function() { + var appElement = jqLite('<div id="ng-app" data-ng-app="ABC"></div>')[0]; jqLite(document.body).append(appElement); angularInit(element, bootstrap); expect(bootstrap).toHaveBeenCalledOnceWith(appElement, ['ABC']); }); - it('should look for ng:app directive in className', function() { + it('should look for ng-app directive in className', function() { var appElement = jqLite('<div data-ng-app="ABC"></div>')[0]; element.querySelectorAll = function(arg) { return element.querySelectorAll[arg] || []; } element.querySelectorAll['.ng\\:app'] = [appElement]; @@ -334,7 +334,7 @@ describe('angular', function() { }); - it('should look for ng:app directive using querySelectorAll', function() { + it('should look for ng-app directive using querySelectorAll', function() { var appElement = jqLite('<div x-ng-app="ABC"></div>')[0]; element.querySelectorAll = function(arg) { return element.querySelectorAll[arg] || []; } element.querySelectorAll['[ng\\:app]'] = [ appElement ]; @@ -464,7 +464,7 @@ describe('angular', function() { if (!msie || msie >= 9) { it('should correctly detect node name with "namespace" when xmlns is NOT defined', function() { var div = jqLite('<div xmlns:ngtest="http://angularjs.org/">' + - '<ngtest:foo ngtest:attr="bar"></ng:test>' + + '<ngtest:foo ngtest:attr="bar"></ng-test>' + '</div>')[0]; expect(nodeName_(div.childNodes[0])).toBe('NGTEST:FOO'); expect(div.childNodes[0].getAttribute('ngtest:attr')).toBe('bar'); @@ -512,7 +512,7 @@ describe('angular', function() { describe('startingElementHtml', function(){ it('should show starting element tag only', function(){ - expect(startingTag('<ng:abc x="2"><div>text</div></ng:abc>')).toEqual('<ng:abc x="2">'); + expect(startingTag('<ng-abc x="2"><div>text</div></ng-abc>')).toEqual('<ng-abc x="2">'); }); }); |
