From f4d338d393dabb49182d40b4fe90c4d1b51621c0 Mon Sep 17 00:00:00 2001 From: Igor Minar Date: Fri, 9 Mar 2012 00:00:05 -0800 Subject: chore(*): refactor all ng: to ng- --- test/AngularSpec.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'test/AngularSpec.js') 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('
')[0]; + it('should look for ng-app directive in id', function() { + var appElement = jqLite('
')[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('
')[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('
')[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('
' + - '' + + '' + '
')[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('
text
')).toEqual(''); + expect(startingTag('
text
')).toEqual(''); }); }); -- cgit v1.2.3