aboutsummaryrefslogtreecommitdiffstats
path: root/test/directive/ngShowHideSpec.js
diff options
context:
space:
mode:
authorIgor Minar2012-03-09 00:00:05 -0800
committerIgor Minar2012-03-09 16:14:26 -0800
commitf4d338d393dabb49182d40b4fe90c4d1b51621c0 (patch)
tree6c20fbef9865869e9db44f27c53aec11f1e30d5e /test/directive/ngShowHideSpec.js
parent0bfaa579c04d1b7cd21fbe16bfbc47a684f223b3 (diff)
downloadangular.js-f4d338d393dabb49182d40b4fe90c4d1b51621c0.tar.bz2
chore(*): refactor all ng: to ng-
Diffstat (limited to 'test/directive/ngShowHideSpec.js')
-rw-r--r--test/directive/ngShowHideSpec.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/test/directive/ngShowHideSpec.js b/test/directive/ngShowHideSpec.js
index 6b9aea24..5005274d 100644
--- a/test/directive/ngShowHideSpec.js
+++ b/test/directive/ngShowHideSpec.js
@@ -1,6 +1,6 @@
'use strict';
-describe('ng:show / ng:hide', function() {
+describe('ng-show / ng-hide', function() {
var element;
@@ -8,9 +8,9 @@ describe('ng:show / ng:hide', function() {
dealoc(element);
});
- describe('ng:show', function() {
+ describe('ng-show', function() {
it('should show and hide an element', inject(function($rootScope, $compile) {
- element = jqLite('<div ng:show="exp"></div>');
+ element = jqLite('<div ng-show="exp"></div>');
element = $compile(element)($rootScope);
$rootScope.$digest();
expect(isCssVisible(element)).toEqual(false);
@@ -21,7 +21,7 @@ describe('ng:show / ng:hide', function() {
it('should make hidden element visible', inject(function($rootScope, $compile) {
- element = jqLite('<div style="display: none" ng:show="exp"></div>');
+ element = jqLite('<div style="display: none" ng-show="exp"></div>');
element = $compile(element)($rootScope);
expect(isCssVisible(element)).toBe(false);
$rootScope.exp = true;
@@ -30,9 +30,9 @@ describe('ng:show / ng:hide', function() {
}));
});
- describe('ng:hide', function() {
+ describe('ng-hide', function() {
it('should hide an element', inject(function($rootScope, $compile) {
- element = jqLite('<div ng:hide="exp"></div>');
+ element = jqLite('<div ng-hide="exp"></div>');
element = $compile(element)($rootScope);
expect(isCssVisible(element)).toBe(true);
$rootScope.exp = true;