Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 1cb260d

Browse files
committed
test(*): fix some inconsequential typos
* a * allows * asynchronously * back * browser * callback * delimited * dynamically * empty * encoded * explicitly * hierarchy * identifiers * immediately * initialized * instance * misformed * numerically * occurring * overridden * params * precedence * select * separator * should * specifying * supported * template * thrown * transclude * transclusion * trigger * useful
1 parent 74c19f0 commit 1cb260d

23 files changed

+66
-66
lines changed

test/BinderSpec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,7 @@ describe('Binder', function() {
357357
});
358358
});
359359

360-
it('ShoulIgnoreVbNonBindable', inject(function($rootScope, $compile) {
360+
it('ShouldIgnoreVbNonBindable', inject(function($rootScope, $compile) {
361361
element = $compile(
362362
'<div>{{a}}' +
363363
'<div ng-non-bindable>{{a}}</div>' +

test/auto/injectorSpec.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ describe('injector', function() {
124124
expect($injector).not.toBe(providerInjector);
125125
}));
126126

127-
it('should have an false strictDi property', inject(function($injector) {
127+
it('should have a false strictDi property', inject(function($injector) {
128128
expect($injector.strictDi).toBe(false);
129129
}));
130130

@@ -192,7 +192,7 @@ describe('injector', function() {
192192

193193

194194
it('should create $inject', function() {
195-
var extraParans = angular.noop;
195+
var extraParams = angular.noop;
196196
/* eslint-disable space-before-function-paren */
197197
// keep the multi-line to make sure we can handle it
198198
function $f_n0 /*
@@ -203,7 +203,7 @@ describe('injector', function() {
203203
function(a, b) {}
204204
*/
205205
_c,
206-
/* {some type} */ d) { extraParans(); }
206+
/* {some type} */ d) { extraParams(); }
207207
/* eslint-enable */
208208
expect(annotate($f_n0)).toEqual(['$a', 'b_', '_c', 'd']);
209209
expect($f_n0.$inject).toEqual(['$a', 'b_', '_c', 'd']);
@@ -944,7 +944,7 @@ describe('injector', function() {
944944
});
945945

946946

947-
it('should throw usefull error on wrong argument type]', function() {
947+
it('should throw useful error on wrong argument type]', function() {
948948
expect(function() {
949949
$injector.invoke({});
950950
}).toThrowMinErr('ng', 'areq', 'Argument \'fn\' is not a function, got Object');

test/ng/browserSpecs.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ describe('browser', function() {
215215
});
216216

217217
describe('outstanding requests', function() {
218-
it('should process callbacks immedietly with no outstanding requests', function() {
218+
it('should process callbacks immediately with no outstanding requests', function() {
219219
var callback = jasmine.createSpy('callback');
220220
browser.notifyWhenNoOutstandingRequests(callback);
221221
expect(callback).toHaveBeenCalled();
@@ -224,7 +224,7 @@ describe('browser', function() {
224224

225225

226226
describe('defer', function() {
227-
it('should execute fn asynchroniously via setTimeout', function() {
227+
it('should execute fn asynchronously via setTimeout', function() {
228228
var callback = jasmine.createSpy('deferred');
229229

230230
browser.defer(callback);

test/ng/compileSpec.js

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -591,7 +591,7 @@ describe('$compile', function() {
591591

592592
it('should not blow up when elements with no childNodes property are compiled', inject(
593593
function($compile, $rootScope) {
594-
// it turns out that when a browser plugin is bound to an DOM element (typically <object>),
594+
// it turns out that when a browser plugin is bound to a DOM element (typically <object>),
595595
// the plugin's context rather than the usual DOM apis are exposed on this element, so
596596
// childNodes might not exist.
597597

@@ -2574,7 +2574,7 @@ describe('$compile', function() {
25742574
}));
25752575

25762576

2577-
it('should correctly create the scope hierachy', inject(
2577+
it('should correctly create the scope hierarchy', inject(
25782578
function($rootScope, $compile, log) {
25792579
element = $compile(
25802580
'<div>' + //1
@@ -3016,7 +3016,7 @@ describe('$compile', function() {
30163016
})
30173017
);
30183018

3019-
it('sholdn\'t add module name to multidir isolated scope message if directive is defined directly with $compileProvider', inject(
3019+
it('shouldn\'t add module name to multidir isolated scope message if directive is defined directly with $compileProvider', inject(
30203020
function($rootScope, $compile) {
30213021
expect(function() {
30223022
$compile('<div class="anonym-module-scope-directive; fake-i-scope"></div>');
@@ -4500,7 +4500,7 @@ describe('$compile', function() {
45004500
});
45014501

45024502

4503-
it('should cope with changes occuring inside `$onChanges()` hooks', function() {
4503+
it('should cope with changes occurring inside `$onChanges()` hooks', function() {
45044504
var log = [];
45054505
function OuterController() {}
45064506
OuterController.prototype.$onChanges = function(change) {
@@ -4931,7 +4931,7 @@ describe('$compile', function() {
49314931
});
49324932

49334933

4934-
it('should ignore optional "="-bound property if value is the emptry string', function() {
4934+
it('should ignore optional "="-bound property if value is the empty string', function() {
49354935
module(function($compileProvider) {
49364936
$compileProvider.directive('testDir', valueFn({
49374937
scope: {prop: '=?'},
@@ -7964,7 +7964,7 @@ describe('$compile', function() {
79647964

79657965

79667966

7967-
it('should instantiate controllers in the parent->child order when transluction, templateUrl and replacement ' +
7967+
it('should instantiate controllers in the parent->child order when transclusion, templateUrl and replacement ' +
79687968
'are in the mix', function() {
79697969
// When a child controller is in the transclusion that replaces the parent element that has a directive with
79707970
// a controller, we should ensure that we first instantiate the parent and only then stuff that comes from the
@@ -8058,7 +8058,7 @@ describe('$compile', function() {
80588058
});
80598059

80608060

8061-
it('should instantiate controllers in the parent->child->baby order when nested transluction, templateUrl and ' +
8061+
it('should instantiate controllers in the parent->child->baby order when nested transclusion, templateUrl and ' +
80628062
'replacement are in the mix', function() {
80638063
// similar to the test above, except that we have one more layer of nesting and nested transclusion
80648064

@@ -8615,7 +8615,7 @@ describe('$compile', function() {
86158615
});
86168616

86178617

8618-
it('should clear contents of the ng-translude element before appending transcluded content' +
8618+
it('should clear contents of the ng-transclude element before appending transcluded content' +
86198619
' if transcluded content exists', function() {
86208620
module(function() {
86218621
directive('trans', function() {
@@ -8632,7 +8632,7 @@ describe('$compile', function() {
86328632
});
86338633
});
86348634

8635-
it('should NOT clear contents of the ng-translude element before appending transcluded content' +
8635+
it('should NOT clear contents of the ng-transclude element before appending transcluded content' +
86368636
' if transcluded content does NOT exist', function() {
86378637
module(function() {
86388638
directive('trans', function() {
@@ -9789,7 +9789,7 @@ describe('$compile', function() {
97899789
});
97909790

97919791

9792-
it('should terminate compilation only for element trasclusion', function() {
9792+
it('should terminate compilation only for element transclusion', function() {
97939793
module(function() {
97949794
directive('elementTrans', function(log) {
97959795
return {
@@ -11935,13 +11935,13 @@ describe('$compile', function() {
1193511935
testReplaceElementCleanup({});
1193611936
});
1193711937
it('should clean data of elements removed for directive templateUrl', function() {
11938-
testReplaceElementCleanup({asyncTmeplate: true});
11938+
testReplaceElementCleanup({asyncTemplate: true});
1193911939
});
1194011940
it('should clean data of elements transcluded into directive template', function() {
1194111941
testReplaceElementCleanup({transclude: true});
1194211942
});
1194311943
it('should clean data of elements transcluded into directive templateUrl', function() {
11944-
testReplaceElementCleanup({transclude: true, asyncTmeplate: true});
11944+
testReplaceElementCleanup({transclude: true, asyncTemplate: true});
1194511945
});
1194611946
it('should clean data of elements replaced with directive template', function() {
1194711947
testReplaceElementCleanup({replace: true});

test/ng/directive/inputSpec.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2082,7 +2082,7 @@ describe('input', function() {
20822082
var dates = [
20832083
// Validate date
20842084
['00:00:00.0000+01:01', false], // date must be specified
2085-
['2010.06.15T00:00:00.0000+01:01', false], // date must use dash seperator
2085+
['2010.06.15T00:00:00.0000+01:01', false], // date must use dash separator
20862086
['x2010-06-15T00:00:00.0000+01:01', false], // invalid leading characters
20872087

20882088
// Validate year
@@ -2110,9 +2110,9 @@ describe('input', function() {
21102110

21112111
// Validate time
21122112
['2010-01-01', false], // time must be specified
2113-
['2010-01-0101:00:00.0000+01:01', false], // missing date time seperator
2114-
['2010-01-01V01:00:00.0000+01:01', false], // invalid date time seperator
2115-
['2010-01-01T01-00-00.0000+01:01', false], // time must use colon seperator
2113+
['2010-01-0101:00:00.0000+01:01', false], // missing date time separator
2114+
['2010-01-01V01:00:00.0000+01:01', false], // invalid date time separator
2115+
['2010-01-01T01-00-00.0000+01:01', false], // time must use colon separator
21162116

21172117
// Validate hour
21182118
['2010-01-01T01:00:00.0000+01:01', true], // hour has two digits
@@ -2141,7 +2141,7 @@ describe('input', function() {
21412141
// Validate milliseconds
21422142
['2010-01-01T01:00:00+01:01', false], // millisecond must be specified
21432143
['2010-01-01T01:00:00.-0000+01:01', false], // millisecond must be positive
2144-
['2010-01-01T01:00:00:0000+01:01', false], // millisecond must use period seperator
2144+
['2010-01-01T01:00:00:0000+01:01', false], // millisecond must use period separator
21452145
['2010-01-01T01:00:00.+01:01', false], // millisecond has too few digits
21462146

21472147
// Validate timezone
@@ -2163,9 +2163,9 @@ describe('input', function() {
21632163

21642164
// Validate timezone minute offset
21652165
['2010-06-15T00:00:00.0000+00:-01', false], // timezone minute offset must be positive
2166-
['2010-06-15T00:00:00.0000+00.01', false], // timezone minute offset must use colon seperator
2167-
['2010-06-15T00:00:00.0000+0101', false], // timezone minute offset must use colon seperator
2168-
['2010-06-15T00:00:00.0000+010', false], // timezone minute offset must use colon seperator
2166+
['2010-06-15T00:00:00.0000+00.01', false], // timezone minute offset must use colon separator
2167+
['2010-06-15T00:00:00.0000+0101', false], // timezone minute offset must use colon separator
2168+
['2010-06-15T00:00:00.0000+010', false], // timezone minute offset must use colon separator
21692169
['2010-06-15T00:00:00.0000+00', false], // timezone minute offset has too few digits
21702170
['2010-06-15T00:00:00.0000+00:', false], // timezone minute offset has too few digits
21712171
['2010-06-15T00:00:00.0000+00:0', false], // timezone minute offset has too few digits

test/ng/directive/selectSpec.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,7 @@ describe('select', function() {
383383
scope.robot = '';
384384
compile('<select ng-model="robot">' +
385385
'<option ng-repeat="opt in dynamicOptions" value="{{opt.val}}">{{opt.display}}</option>' +
386-
'</selec>');
386+
'</select>');
387387
expect(element).toEqualSelect(['? string: ?']);
388388

389389

@@ -420,7 +420,7 @@ describe('select', function() {
420420
compile('<select ng-model="robot">' +
421421
'<option value="">--static-select--</option>' +
422422
'<option ng-repeat="opt in dynamicOptions" value="{{opt.val}}">{{opt.display}}</option>' +
423-
'</selec>');
423+
'</select>');
424424
scope.$digest();
425425
expect(element).toEqualSelect([unknownValue('x')], '');
426426

test/ng/directive/validatorsSpec.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ describe('validators', function() {
274274
});
275275

276276

277-
it('should validate when the model is initalized as a number', function() {
277+
it('should validate when the model is initialized as a number', function() {
278278
$rootScope.value = 12345;
279279
var inputElm = helper.compileInput('<input type="text" name="input" ng-model="value" minlength="3" />');
280280
expect($rootScope.value).toBe(12345);
@@ -462,7 +462,7 @@ describe('validators', function() {
462462
});
463463

464464

465-
it('should validate when the model is initalized as a number', function() {
465+
it('should validate when the model is initialized as a number', function() {
466466
$rootScope.value = 12345;
467467
var inputElm = helper.compileInput('<input type="text" name="input" ng-model="value" maxlength="10" />');
468468
expect($rootScope.value).toBe(12345);

test/ng/filter/orderBySpec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ describe('Filter: orderBy', function() {
266266

267267

268268
describe('(built-in comparator)', function() {
269-
it('should compare numbers numarically', function() {
269+
it('should compare numbers numerically', function() {
270270
var items = [100, 3, 20];
271271
var expr = null;
272272
var sorted = [3, 20, 100];

test/ng/httpSpec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -949,7 +949,7 @@ describe('$http', function() {
949949
$http({ method: 'JSONP', url: $sce.trustAsResourceUrl('http://example.org/path')});
950950
});
951951

952-
it('jsonp() should accept explictly trusted urls', function() {
952+
it('jsonp() should accept explicitly trusted urls', function() {
953953
$httpBackend.expect('JSONP', '/url?callback=JSON_CALLBACK').respond('');
954954
$http({method: 'JSONP', url: $sce.trustAsResourceUrl('/url')});
955955

test/ng/jsonpCallbacksSpec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ describe('$jsonpCallbacks', function() {
7171
});
7272

7373

74-
describe('removeCallback(calbackPath)', function() {
74+
describe('removeCallback(callbackPath)', function() {
7575

7676
it('should remove the callback', inject(function($window, $jsonpCallbacks) {
7777
var path = $jsonpCallbacks.createCallback('http://some.dummy.com/jsonp/request');

test/ng/locationSpec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -650,7 +650,7 @@ describe('$location', function() {
650650
expect(locationUrl.absUrl()).toEqual('http://host.com?q=1%2F2%203&q=4%2F5%206');
651651
});
652652

653-
it('should rewrite params when specifing a single param in search', function() {
653+
it('should rewrite params when specifying a single param in search', function() {
654654
var locationUrl = new LocationHtml5Url('http://host.com', 'http://host.com');
655655
locationUrl.$$parse('http://host.com');
656656
locationUrl.search({'q': '1/2 3'});

test/ng/parseSpec.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -591,7 +591,7 @@ describe('parser', function() {
591591
});
592592

593593

594-
it('should not confuse `this`, `$locals`, `undefined`, `true`, `false`, `null` when used as identfiers', function() {
594+
it('should not confuse `this`, `$locals`, `undefined`, `true`, `false`, `null` when used as identifiers', function() {
595595
forEach(['this', '$locals', 'undefined', 'true', 'false', 'null'], function(identifier) {
596596
expect(createAst('foo.' + identifier)).toEqual(
597597
{
@@ -701,7 +701,7 @@ describe('parser', function() {
701701
});
702702

703703

704-
it('should associate binary operators with the same precendence left-to-right', function() {
704+
it('should associate binary operators with the same precedence left-to-right', function() {
705705
var operatorsByPrecedence = [['*', '/', '%'], ['+', '-'], ['<', '>', '<=', '>='], ['==','!=','===','!==']];
706706
forEach(operatorsByPrecedence, function(operators) {
707707
forEach(operators, function(op1) {
@@ -733,7 +733,7 @@ describe('parser', function() {
733733
});
734734

735735

736-
it('should give higher prcedence to member calls than to unary expressions', function() {
736+
it('should give higher precedence to member calls than to unary expressions', function() {
737737
forEach(['!', '+', '-'], function(operator) {
738738
expect(createAst(operator + 'foo()')).toEqual(
739739
{

0 commit comments

Comments
 (0)