' +
+ element = $compile('
')($rootScope);
expect(onload).not.toHaveBeenCalled();
diff --git a/test/directive/ngInitSpec.js b/test/directive/ngInitSpec.js
index b096c7fd..92146089 100644
--- a/test/directive/ngInitSpec.js
+++ b/test/directive/ngInitSpec.js
@@ -1,6 +1,6 @@
'use strict';
-describe('ng:init', function() {
+describe('ng-init', function() {
var element;
@@ -9,8 +9,8 @@ describe('ng:init', function() {
});
- it("should ng:init", inject(function($rootScope, $compile) {
- element = $compile('
')($rootScope);
+ it("should ng-init", inject(function($rootScope, $compile) {
+ element = $compile('
')($rootScope);
expect($rootScope.a).toEqual(123);
}));
});
diff --git a/test/directive/ngNonBindableSpec.js b/test/directive/ngNonBindableSpec.js
index c974948d..8b745364 100644
--- a/test/directive/ngNonBindableSpec.js
+++ b/test/directive/ngNonBindableSpec.js
@@ -1,7 +1,7 @@
'use strict';
-describe('ng:non-bindable', function() {
+describe('ng-non-bindable', function() {
var element;
@@ -12,7 +12,7 @@ describe('ng:non-bindable', function() {
it('should prevent compilation of the owning element and its children',
inject(function($rootScope, $compile) {
- element = $compile('
')($rootScope);
+ element = $compile('
')($rootScope);
$rootScope.name = 'misko';
$rootScope.$digest();
expect(element.text()).toEqual('');
diff --git a/test/directive/ngPluralizeSpec.js b/test/directive/ngPluralizeSpec.js
index 8046f45f..c7766c7b 100644
--- a/test/directive/ngPluralizeSpec.js
+++ b/test/directive/ngPluralizeSpec.js
@@ -1,6 +1,6 @@
'use strict';
-describe('ng:pluralize', function() {
+describe('ng-pluralize', function() {
var element;
diff --git a/test/directive/ngRepeatSpec.js b/test/directive/ngRepeatSpec.js
index 8400edaa..8b6a5173 100644
--- a/test/directive/ngRepeatSpec.js
+++ b/test/directive/ngRepeatSpec.js
@@ -1,6 +1,6 @@
'use strict';
-describe('ng:repeat', function() {
+describe('ng-repeat', function() {
var element;
@@ -9,10 +9,10 @@ describe('ng:repeat', function() {
});
- it('should ng:repeat over array', inject(function($rootScope, $compile) {
+ it('should ng-repeat over array', inject(function($rootScope, $compile) {
element = $compile(
'
')($rootScope);
Array.prototype.extraProperty = "should be ignored";
@@ -37,10 +37,10 @@ describe('ng:repeat', function() {
}));
- it('should ng:repeat over object', inject(function($rootScope, $compile) {
+ it('should ng-repeat over object', inject(function($rootScope, $compile) {
element = $compile(
'
')($rootScope);
$rootScope.items = {misko:'swe', shyam:'set'};
$rootScope.$digest();
@@ -48,14 +48,14 @@ describe('ng:repeat', function() {
}));
- it('should not ng:repeat over parent properties', inject(function($rootScope, $compile) {
+ it('should not ng-repeat over parent properties', inject(function($rootScope, $compile) {
var Class = function() {};
Class.prototype.abc = function() {};
Class.prototype.value = 'abc';
element = $compile(
'
')($rootScope);
$rootScope.items = new Class();
$rootScope.items.name = 'value';
@@ -64,10 +64,10 @@ describe('ng:repeat', function() {
}));
- it('should error on wrong parsing of ng:repeat', inject(function($rootScope, $compile, $log) {
+ it('should error on wrong parsing of ng-repeat', inject(function($rootScope, $compile, $log) {
expect(function() {
- element = $compile('
')($rootScope);
- }).toThrow("Expected ng:repeat in form of '_item_ in _collection_' but got 'i dont parse'.");
+ element = $compile('
')($rootScope);
+ }).toThrow("Expected ng-repeat in form of '_item_ in _collection_' but got 'i dont parse'.");
$log.error.logs.shift();
}));
@@ -77,7 +77,7 @@ describe('ng:repeat', function() {
inject(function($rootScope, $compile) {
element = $compile(
'
')($rootScope);
$rootScope.items = ['misko', 'shyam', 'frodo'];
$rootScope.$digest();
@@ -89,7 +89,7 @@ describe('ng:repeat', function() {
inject(function($rootScope, $compile) {
element = $compile(
'
')($rootScope);
$rootScope.items = {'misko':'m', 'shyam':'s', 'frodo':'f'};
$rootScope.$digest();
@@ -101,7 +101,7 @@ describe('ng:repeat', function() {
inject(function($rootScope, $compile) {
element = $compile(
'
')($rootScope);
$rootScope.items = ['misko', 'shyam', 'doug'];
$rootScope.$digest();
@@ -122,7 +122,7 @@ describe('ng:repeat', function() {
inject(function($rootScope, $compile) {
element = $compile(
'
')($rootScope);
$rootScope.items = {'misko':'m', 'shyam':'s', 'doug':'d', 'frodo':'f'};
@@ -137,7 +137,7 @@ describe('ng:repeat', function() {
it('should ignore $ and $$ properties', inject(function($rootScope, $compile) {
- element = $compile('
')($rootScope);
+ element = $compile('
')($rootScope);
$rootScope.items = ['a', 'b', 'c'];
$rootScope.items.$$hashkey = 'xxx';
$rootScope.items.$root = 'yyy';
@@ -150,8 +150,8 @@ describe('ng:repeat', function() {
it('should repeat over nested arrays', inject(function($rootScope, $compile) {
element = $compile(
'
' +
- '- ' +
- '
{{group}}|
X' +
+ ' - ' +
+ '
{{group}}|
X' +
' ' +
'
')($rootScope);
$rootScope.groups = [['a', 'b'], ['c','d']];
@@ -163,7 +163,7 @@ describe('ng:repeat', function() {
it('should ignore non-array element properties when iterating over an array',
inject(function($rootScope, $compile) {
- element = $compile('
')($rootScope);
+ element = $compile('
')($rootScope);
$rootScope.array = ['a', 'b', 'c'];
$rootScope.array.foo = '23';
$rootScope.array.bar = function() {};
@@ -175,7 +175,7 @@ describe('ng:repeat', function() {
it('should iterate over non-existent elements of a sparse array',
inject(function($rootScope, $compile) {
- element = $compile('
')($rootScope);
+ element = $compile('
')($rootScope);
$rootScope.array = ['a', 'b'];
$rootScope.array[4] = 'c';
$rootScope.array[6] = 'd';
@@ -186,7 +186,7 @@ describe('ng:repeat', function() {
it('should iterate over all kinds of types', inject(function($rootScope, $compile) {
- element = $compile('
')($rootScope);
+ element = $compile('
')($rootScope);
$rootScope.array = ['a', 1, null, undefined, {}];
$rootScope.$digest();
@@ -200,7 +200,7 @@ describe('ng:repeat', function() {
beforeEach(inject(function($rootScope, $compile) {
element = $compile(
'
')($rootScope);
a = {};
b = {};
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('
');
+ element = jqLite('
');
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('
');
+ element = jqLite('
');
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('
');
+ element = jqLite('
');
element = $compile(element)($rootScope);
expect(isCssVisible(element)).toBe(true);
$rootScope.exp = true;
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('
')($rootScope);
+ element = $compile('
')($rootScope);
$rootScope.$digest();
expect(element.css('height')).toEqual('40px');
}));
it('should silently ignore undefined style', inject(function($rootScope, $compile) {
- element = $compile('
')($rootScope);
+ element = $compile('
')($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('
');
+ element = jqLite('
');
element.css(preCompStyle, preCompVal);
jqLite(document.body).append(element);
$compile(element)($rootScope);
diff --git a/test/directive/ngSwitchSpec.js b/test/directive/ngSwitchSpec.js
index 88e81dea..c61dd60d 100644
--- a/test/directive/ngSwitchSpec.js
+++ b/test/directive/ngSwitchSpec.js
@@ -1,6 +1,6 @@
'use strict';
-describe('ng:switch', function() {
+describe('ng-switch', function() {
var element;
@@ -12,9 +12,9 @@ describe('ng:switch', function() {
it('should switch on value change', inject(function($rootScope, $compile) {
element = $compile(
'
' +
- '
first:{{name}}
' +
- '
second:{{name}}
' +
- '
true:{{name}}
' +
+ '
first:{{name}}
' +
+ '
second:{{name}}
' +
+ '
true:{{name}}
' +
'
')($rootScope);
expect(element.html()).toEqual(
'');
@@ -53,7 +53,7 @@ describe('ng:switch', function() {
it('should call change on switch', inject(function($rootScope, $compile) {
element = $compile(
'
' +
- '{{name}}
' +
+ '{{name}}
' +
'')($rootScope);
$rootScope.url = 'a';
$rootScope.$apply();
diff --git a/test/directive/ngViewSpec.js b/test/directive/ngViewSpec.js
index afdded94..2a4347a0 100644
--- a/test/directive/ngViewSpec.js
+++ b/test/directive/ngViewSpec.js
@@ -1,6 +1,6 @@
'use strict';
-describe('ng:view', function() {
+describe('ng-view', function() {
var element;
beforeEach(module(function() {
@@ -118,7 +118,7 @@ describe('ng:view', function() {
});
- it('should be possible to nest ng:view in ng:include', inject(function() {
+ it('should be possible to nest ng-view in ng-include', inject(function() {
// TODO(vojta): refactor this test
dealoc(element);
var injector = angular.injector(['ng', 'ngMock', function($routeProvider) {
@@ -149,7 +149,7 @@ describe('ng:view', function() {
it('should initialize view template after the view controller was initialized even when ' +
'templates were cached', function() {
- //this is a test for a regression that was introduced by making the ng:view cache sync
+ //this is a test for a regression that was introduced by making the ng-view cache sync
function ParentCtrl($scope) {
$scope.log.push('parent');
}
@@ -168,8 +168,8 @@ describe('ng:view', function() {
$location.path('/foo');
$httpBackend.expect('GET', 'viewPartial.html').
- respond('
' +
- '
' +
+ respond('
');
$rootScope.$apply();
$httpBackend.flush();
diff --git a/test/directive/selectSpec.js b/test/directive/selectSpec.js
index c262d0cf..3b4f992e 100644
--- a/test/directive/selectSpec.js
+++ b/test/directive/selectSpec.js
@@ -23,7 +23,7 @@ describe('select', function() {
describe('select-one', function() {
- it('should compile children of a select without a ng:model, but not create a model for it',
+ it('should compile children of a select without a ng-model, but not create a model for it',
function() {
compile('