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/directive/ngStyleSpec.js | |
| parent | 0bfaa579c04d1b7cd21fbe16bfbc47a684f223b3 (diff) | |
| download | angular.js-f4d338d393dabb49182d40b4fe90c4d1b51621c0.tar.bz2 | |
chore(*): refactor all ng: to ng-
Diffstat (limited to 'test/directive/ngStyleSpec.js')
| -rw-r--r-- | test/directive/ngStyleSpec.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/directive/ngStyleSpec.js b/test/directive/ngStyleSpec.js index a413353b..c12f2f4d 100644 --- a/test/directive/ngStyleSpec.js +++ b/test/directive/ngStyleSpec.js @@ -1,6 +1,6 @@ 'use strict'; -describe('ng:style', function() { +describe('ng-style', function() { var element; @@ -10,14 +10,14 @@ describe('ng:style', function() { it('should set', inject(function($rootScope, $compile) { - element = $compile('<div ng:style="{height: \'40px\'}"></div>')($rootScope); + element = $compile('<div ng-style="{height: \'40px\'}"></div>')($rootScope); $rootScope.$digest(); expect(element.css('height')).toEqual('40px'); })); it('should silently ignore undefined style', inject(function($rootScope, $compile) { - element = $compile('<div ng:style="myStyle"></div>')($rootScope); + element = $compile('<div ng-style="myStyle"></div>')($rootScope); $rootScope.$digest(); expect(element.hasClass('ng-exception')).toBeFalsy(); })); @@ -31,7 +31,7 @@ describe('ng:style', function() { preCompVal = '300px'; postCompStyle = 'height'; postCompVal = '100px'; - element = jqLite('<div ng:style="styleObj"></div>'); + element = jqLite('<div ng-style="styleObj"></div>'); element.css(preCompStyle, preCompVal); jqLite(document.body).append(element); $compile(element)($rootScope); |
