diff --git a/CHANGELOG.md b/CHANGELOG.md index 21af6b80eab7..57071b04fafa 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -231,7 +231,7 @@ elem.attr(booleanAttrName, null); - **[4e3624](https://github.com/angular/angular.js/commit/4e3624552284d0e725bf6262b2e468cd2c7682fa)**: remove the attribute for `.attr(attribute, null)` Invoking `elem.attr(attributeName, null)` would set the -`attributeName` atribute value to a string `"null"`, now it removes the +`attributeName` attribute value to a string `"null"`, now it removes the attribute instead. To migrate the code follow the example below: @@ -595,7 +595,7 @@ ancestor. It is possible that an `ngModelOptions` directive that does not set a property, has an ancestor ngModelOptions that does set this property to a value other than `undefined`. This would cause the `ngModel` and input controls below this `ngModelOptions` -directive to display different behaviour. This is fixed by explictly setting the +directive to display different behaviour. This is fixed by explicitly setting the property in the `ngModelOptions` to prevent it from inheriting from the ancestor. For example if you had the following HTML: @@ -667,7 +667,7 @@ might have unexpectd side effects in the following cases: ```js // Assuming the following component: - .compoent('someThing', { + .component('someThing', { template: '' transclude: { ignored: 'veryImportantContent' @@ -2919,7 +2919,7 @@ the built-in pattern validator: /** * The built-in directive will call our overwritten validator * (see below). We just need to update the regex. - * The preLink fn guaranetees our observer is called first. + * The preLink fn guarantees our observer is called first. */ if (isString(regex) && regex.length > 0) { regex = new RegExp('^' + regex + '$'); @@ -3035,7 +3035,7 @@ the built-in pattern validator: /** * The built-in directive will call our overwritten validator * (see below). We just need to update the regex. - * The preLink fn guaranetees our observer is called first. + * The preLink fn guarantees our observer is called first. */ if (isString(regex) && regex.length > 0) { regex = new RegExp('^' + regex + '$'); @@ -4909,7 +4909,7 @@ behavior is undefined. ([96c61fe7](https://github.com/angular/angular.js/commit/96c61fe756d7d3db011818bf0925e3d86ffff8ce), [#10278](https://github.com/angular/angular.js/issues/10278)) - **orderBy:** - - make object-to-primtiive behavior work for objects with null prototype + - make object-to-primitive behavior work for objects with null prototype ([3aa57528](https://github.com/angular/angular.js/commit/3aa5752894419b4638d5c934879258fa6a1c0d07)) - maintain order in array of objects when predicate is not provided ([8bfeddb5](https://github.com/angular/angular.js/commit/8bfeddb5d671017f4a21b8b46334ac816710b143), @@ -7066,7 +7066,7 @@ Closes #7336 Previously, it was possible for an action passed to $watch -to be a string, interpreted as an angular expresison. This is no longer supported. +to be a string, interpreted as an angular expression. This is no longer supported. The action now has to be a function. Passing an action to $watch is still optional. @@ -8967,7 +8967,7 @@ The animation mock module has been renamed from `mock.animate` to `ngAnimateMock After: ``` - // POST, PUT and PATCH default headers must be specified seperately, + // POST, PUT and PATCH default headers must be specified separately, // as they do not share data. $httpProvider.defaults.headers.post = $httpProvider.defaults.headers.put = @@ -9753,7 +9753,7 @@ There are no breaking changes in this release (promise!) ([31c56f54](https://github.com/angular/angular.js/commit/31c56f540045b5270f5b8e235873da855caf3486), [#4145](https://github.com/angular/angular.js/issues/4145), [#3964](https://github.com/angular/angular.js/issues/3964)) - - **ngTransclude:** detect ngTranslude usage without a transclusion directive + - **ngTransclude:** detect ngTransclude usage without a transclusion directive ([5a1a6b86](https://github.com/angular/angular.js/commit/5a1a6b86a8dbcd8aa4fe9c59fad8d005eead686c), [#3759](https://github.com/angular/angular.js/issues/3759)) @@ -9821,7 +9821,7 @@ There are no breaking changes in this release (promise!) - ensure transition-property is not changed when only keyframe animations are in use ([2df3c9f5](https://github.com/angular/angular.js/commit/2df3c9f58def9584455f7c4bfdabbd12aab58bf9), [#3933](https://github.com/angular/angular.js/issues/3933)) - - avoid completing the animation asynchronously unless CSS transtiions/animations are present + - avoid completing the animation asynchronously unless CSS transitions/animations are present ([2a63dfa6](https://github.com/angular/angular.js/commit/2a63dfa6cc7889888f4296fff2944e74ff30b3af), [#4023](https://github.com/angular/angular.js/issues/4023), [#3940](https://github.com/angular/angular.js/issues/3940)) @@ -11463,7 +11463,7 @@ This release also contains all bug fixes available in [1.0.2](#1.0.2). ## Features -- **$http:** support custom reponseType +- **$http:** support custom responseType ([e0a54f6b](https://github.com/angular/angular.js/commit/e0a54f6b206dc2b6595f2bc3a17c5932e7477545), [#1013](https://github.com/angular/angular.js/issues/1013)) - **$interpolate:** @@ -11610,14 +11610,14 @@ This release also contains all bug fixes available in [1.0.2](#1.0.2). - allow defining route async dependencies as promises and defer route change until all promises are resolved ([885fb0dd](https://github.com/angular/angular.js/commit/885fb0dd0743859a8985c23e4d0c1855a2be711e)) - - rename template -> tempalteUrl and add support for inline templates + - rename template -> templateUrl and add support for inline templates ([0a6e464a](https://github.com/angular/angular.js/commit/0a6e464a93d9a1e76a624b356054ce9ca4015f55)) - **$compile:** simplify isolate scope bindings and introduce true two-way data-binding between parent scope and isolate scope ([c3a41ff9](https://github.com/angular/angular.js/commit/c3a41ff9fefe894663c4d4f40a83794521deb14f)) - **$injector:** provide API for retrieving function annotations ([4361efb0](https://github.com/angular/angular.js/commit/4361efb03b79e71bf0cea92b94ff377ed718bad4)) -- **$location:** add $locatonChange[start|success] event - since events are cancelable, it's now +- **$location:** add $locationChange[start|success] event - since events are cancelable, it's now possible to cancel route and location changes. ([92a2e180](https://github.com/angular/angular.js/commit/92a2e1807657c69e1372106b0727675a30f4cbd7)) - **$rootElement:** expose application root element as $rootElement service @@ -11940,7 +11940,7 @@ This release also contains all bug fixes available in [1.0.2](#1.0.2). ([06d09550](https://github.com/angular/angular.js/commit/06d0955074f79de553cc34fbf945045dc458e064)) - **booleanAttrs:** always convert the model to boolean before setting the element property ([dcb8e076](https://github.com/angular/angular.js/commit/dcb8e0767fbf0a7a55f3b0045fd01b2532ea5441)) - - **form:** preperly clean up when invalid widget is removed + - **form:** properly clean up when invalid widget is removed ([21b77ad5](https://github.com/angular/angular.js/commit/21b77ad5c231ab0e05eb89f22005f7ed8d40a6c1)) - **ngHref:** copy even if no binding ([2f5dba48](https://github.com/angular/angular.js/commit/2f5dba488e855bcdbb9304aa809efcb9de7b43e9)) @@ -12082,7 +12082,7 @@ We removed two useless features: ([ee5a5352](https://github.com/angular/angular.js/commit/ee5a5352fd4b94cedee6ef20d4bf2d43ce77e00b), [#806](https://github.com/angular/angular.js/issues/806)) - **directives:** - - **select:** multiselect failes to update view on selection insert + - **select:** multiselect fails to update view on selection insert ([6ecac8e7](https://github.com/angular/angular.js/commit/6ecac8e71a84792a434d21db2c245b3648c55f18)) - **ngForm:** alias name||ngForm ([823adb23](https://github.com/angular/angular.js/commit/823adb231995e917bc060bfa49453e2a96bac2b6)) diff --git a/docs/content/guide/animations.ngdoc b/docs/content/guide/animations.ngdoc index 990cee18cca2..cb59791e0a58 100644 --- a/docs/content/guide/animations.ngdoc +++ b/docs/content/guide/animations.ngdoc @@ -384,7 +384,7 @@ By default, any `ngAnimate` enabled directives will assume any transition / anim element are part of an `ngAnimate` animation. This can lead to problems when the styles are actually for animations that are independent of `ngAnimate`. -For example, an element acts as a loading spinner. It has an inifinite css animation on it, and also an +For example, an element acts as a loading spinner. It has an infinite css animation on it, and also an {@link ngIf `ngIf`} directive, for which no animations are defined: ```css diff --git a/docs/content/guide/component-router.ngdoc b/docs/content/guide/component-router.ngdoc index a982cef38088..76cea687b61b 100644 --- a/docs/content/guide/component-router.ngdoc +++ b/docs/content/guide/component-router.ngdoc @@ -32,8 +32,8 @@ Here is a table of the main concepts used in the Component Router. | Routing Component | An Angular component with a RouteConfig and an associated Router. | | RouteDefinition | Defines how the router should navigate to a component based on a URL pattern. | | ngOutlet | The directive (``) that marks where the router should display a view. | -| ngLink | The directive (`ng-link="..."`) for binding a clickable HTML element to a route, via a Link Paramaters Array. | -| Link Parameters Array | An array that the router inteprets into a routing instruction. We can bind a RouterLink to that array or pass the array as an argument to the Router.navigate method. | +| ngLink | The directive (`ng-link="..."`) for binding a clickable HTML element to a route, via a Link Parameters Array. | +| Link Parameters Array | An array that the router interprets into a routing instruction. We can bind a RouterLink to that array or pass the array as an argument to the Router.navigate method. | ## Component-based Applications @@ -929,7 +929,7 @@ function HeroListComponent(heroService) { } ``` -Finally, we can use this information to higlight the current hero in the template. +Finally, we can use this information to highlight the current hero in the template. ```html

- Angular scopes prototypally inherit from their parent scope, all the way up to the *root scope* + Angular scopes prototypically inherit from their parent scope, all the way up to the *root scope* of the application. As a result, assigning values directly on the scope makes it easy to share data across different parts of the page and create interactive applications. While this approach works for prototypes and smaller applications, it quickly leads to tight diff --git a/docs/content/tutorial/step_09.ngdoc b/docs/content/tutorial/step_09.ngdoc index f8c7f0198bd8..5ab2e9b3eac8 100644 --- a/docs/content/tutorial/step_09.ngdoc +++ b/docs/content/tutorial/step_09.ngdoc @@ -324,7 +324,7 @@ modularity. The takeaway here is: -* Always be explicit about the dependecies of a sub-module. Do not rely on dependencies inherited +* Always be explicit about the dependencies of a sub-module. Do not rely on dependencies inherited from a parent module (because that parent module might not be there some day).

diff --git a/gdocs.js b/gdocs.js index e83e0eca26fd..0c48de4aba32 100755 --- a/gdocs.js +++ b/gdocs.js @@ -39,7 +39,7 @@ if (flag === '--login') { } function help() { - console.log('Synopsys'); + console.log('Synopsis'); console.log('gdocs.js --login '); console.log('gdocs.js --fetch []'); process.exit(-1); diff --git a/src/ng/compile.js b/src/ng/compile.js index 6d988aa698f9..10f9fa4285c7 100644 --- a/src/ng/compile.js +++ b/src/ng/compile.js @@ -402,7 +402,7 @@ * * defines the parent to which the `cloneLinkingFn` will add the cloned elements. * * default: `$element.parent()` resp. `$element` for `transclude:'element'` resp. `transclude:true`. * * only needed for transcludes that are allowed to contain non html elements (e.g. SVG elements) - * and when the `cloneLinkinFn` is passed, + * and when the `cloneLinkingFn` is passed, * as those elements need to created and cloned in a special way when they are defined outside their * usual containers (e.g. like ``). * * See also the `directive.templateNamespace` property. @@ -2222,7 +2222,7 @@ function $CompileProvider($provide, $$sanitizeUriProvider) { } /** - * Given a node with an directive-start it collects all of the siblings until it finds + * Given a node with a directive-start it collects all of the siblings until it finds * directive-end. * @param node * @param attrStart diff --git a/src/ng/directive/input.js b/src/ng/directive/input.js index 8d8afcdb8306..c7c66b9fe172 100644 --- a/src/ng/directive/input.js +++ b/src/ng/directive/input.js @@ -1234,7 +1234,7 @@ function textInputType(scope, element, attr, ctrl, $sniffer, $browser) { function baseInputType(scope, element, attr, ctrl, $sniffer, $browser) { var type = lowercase(element[0].type); - // In composition mode, users are still inputing intermediate text buffer, + // In composition mode, users are still inputting intermediate text buffer, // hold the listener until composition is done. // More about composition events: https://developer.mozilla.org/en-US/docs/Web/API/CompositionEvent if (!$sniffer.android) { diff --git a/src/ngAnimate/animateChildrenDirective.js b/src/ngAnimate/animateChildrenDirective.js index 7ff96b169d9e..bf264791513b 100644 --- a/src/ngAnimate/animateChildrenDirective.js +++ b/src/ngAnimate/animateChildrenDirective.js @@ -12,7 +12,7 @@ * of the children's parents are currently animating. By default, when an element has an active `enter`, `leave`, or `move` * (structural) animation, child elements that also have an active structural animation are not animated. * - * Note that even if `ngAnimteChildren` is set, no child animations will run when the parent element is removed from the DOM (`leave` animation). + * Note that even if `ngAnimateChildren` is set, no child animations will run when the parent element is removed from the DOM (`leave` animation). * * * @param {string} ngAnimateChildren If the value is empty, `true` or `on`, diff --git a/test/BinderSpec.js b/test/BinderSpec.js index 5d9beae964cc..7aa574a2f7f0 100644 --- a/test/BinderSpec.js +++ b/test/BinderSpec.js @@ -357,7 +357,7 @@ describe('Binder', function() { }); }); - it('ShoulIgnoreVbNonBindable', inject(function($rootScope, $compile) { + it('ShouldIgnoreVbNonBindable', inject(function($rootScope, $compile) { element = $compile( '
{{a}}' + '
{{a}}
' + diff --git a/test/auto/injectorSpec.js b/test/auto/injectorSpec.js index 807a47847293..de8d60c50a7d 100644 --- a/test/auto/injectorSpec.js +++ b/test/auto/injectorSpec.js @@ -124,7 +124,7 @@ describe('injector', function() { expect($injector).not.toBe(providerInjector); })); - it('should have an false strictDi property', inject(function($injector) { + it('should have a false strictDi property', inject(function($injector) { expect($injector.strictDi).toBe(false); })); @@ -192,7 +192,7 @@ describe('injector', function() { it('should create $inject', function() { - var extraParans = angular.noop; + var extraParams = angular.noop; /* eslint-disable space-before-function-paren */ // keep the multi-line to make sure we can handle it function $f_n0 /* @@ -203,7 +203,7 @@ describe('injector', function() { function(a, b) {} */ _c, - /* {some type} */ d) { extraParans(); } + /* {some type} */ d) { extraParams(); } /* eslint-enable */ expect(annotate($f_n0)).toEqual(['$a', 'b_', '_c', 'd']); expect($f_n0.$inject).toEqual(['$a', 'b_', '_c', 'd']); @@ -944,7 +944,7 @@ describe('injector', function() { }); - it('should throw usefull error on wrong argument type]', function() { + it('should throw useful error on wrong argument type]', function() { expect(function() { $injector.invoke({}); }).toThrowMinErr('ng', 'areq', 'Argument \'fn\' is not a function, got Object'); diff --git a/test/ng/browserSpecs.js b/test/ng/browserSpecs.js index 5c55800d7134..704da30c1f0c 100755 --- a/test/ng/browserSpecs.js +++ b/test/ng/browserSpecs.js @@ -215,7 +215,7 @@ describe('browser', function() { }); describe('outstanding requests', function() { - it('should process callbacks immedietly with no outstanding requests', function() { + it('should process callbacks immediately with no outstanding requests', function() { var callback = jasmine.createSpy('callback'); browser.notifyWhenNoOutstandingRequests(callback); expect(callback).toHaveBeenCalled(); @@ -224,7 +224,7 @@ describe('browser', function() { describe('defer', function() { - it('should execute fn asynchroniously via setTimeout', function() { + it('should execute fn asynchronously via setTimeout', function() { var callback = jasmine.createSpy('deferred'); browser.defer(callback); diff --git a/test/ng/compileSpec.js b/test/ng/compileSpec.js index 4b85144bf8dd..3d2b31670196 100755 --- a/test/ng/compileSpec.js +++ b/test/ng/compileSpec.js @@ -591,7 +591,7 @@ describe('$compile', function() { it('should not blow up when elements with no childNodes property are compiled', inject( function($compile, $rootScope) { - // it turns out that when a browser plugin is bound to an DOM element (typically ), + // it turns out that when a browser plugin is bound to a DOM element (typically ), // the plugin's context rather than the usual DOM apis are exposed on this element, so // childNodes might not exist. @@ -2574,7 +2574,7 @@ describe('$compile', function() { })); - it('should correctly create the scope hierachy', inject( + it('should correctly create the scope hierarchy', inject( function($rootScope, $compile, log) { element = $compile( '
' + //1 @@ -3016,7 +3016,7 @@ describe('$compile', function() { }) ); - it('sholdn\'t add module name to multidir isolated scope message if directive is defined directly with $compileProvider', inject( + it('shouldn\'t add module name to multidir isolated scope message if directive is defined directly with $compileProvider', inject( function($rootScope, $compile) { expect(function() { $compile('
'); @@ -4500,7 +4500,7 @@ describe('$compile', function() { }); - it('should cope with changes occuring inside `$onChanges()` hooks', function() { + it('should cope with changes occurring inside `$onChanges()` hooks', function() { var log = []; function OuterController() {} OuterController.prototype.$onChanges = function(change) { @@ -4931,7 +4931,7 @@ describe('$compile', function() { }); - it('should ignore optional "="-bound property if value is the emptry string', function() { + it('should ignore optional "="-bound property if value is the empty string', function() { module(function($compileProvider) { $compileProvider.directive('testDir', valueFn({ scope: {prop: '=?'}, @@ -7964,7 +7964,7 @@ describe('$compile', function() { - it('should instantiate controllers in the parent->child order when transluction, templateUrl and replacement ' + + it('should instantiate controllers in the parent->child order when transclusion, templateUrl and replacement ' + 'are in the mix', function() { // When a child controller is in the transclusion that replaces the parent element that has a directive with // 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() { }); - it('should instantiate controllers in the parent->child->baby order when nested transluction, templateUrl and ' + + it('should instantiate controllers in the parent->child->baby order when nested transclusion, templateUrl and ' + 'replacement are in the mix', function() { // similar to the test above, except that we have one more layer of nesting and nested transclusion @@ -8615,7 +8615,7 @@ describe('$compile', function() { }); - it('should clear contents of the ng-translude element before appending transcluded content' + + it('should clear contents of the ng-transclude element before appending transcluded content' + ' if transcluded content exists', function() { module(function() { directive('trans', function() { @@ -8632,7 +8632,7 @@ describe('$compile', function() { }); }); - it('should NOT clear contents of the ng-translude element before appending transcluded content' + + it('should NOT clear contents of the ng-transclude element before appending transcluded content' + ' if transcluded content does NOT exist', function() { module(function() { directive('trans', function() { @@ -9789,7 +9789,7 @@ describe('$compile', function() { }); - it('should terminate compilation only for element trasclusion', function() { + it('should terminate compilation only for element transclusion', function() { module(function() { directive('elementTrans', function(log) { return { @@ -11935,13 +11935,13 @@ describe('$compile', function() { testReplaceElementCleanup({}); }); it('should clean data of elements removed for directive templateUrl', function() { - testReplaceElementCleanup({asyncTmeplate: true}); + testReplaceElementCleanup({asyncTemplate: true}); }); it('should clean data of elements transcluded into directive template', function() { testReplaceElementCleanup({transclude: true}); }); it('should clean data of elements transcluded into directive templateUrl', function() { - testReplaceElementCleanup({transclude: true, asyncTmeplate: true}); + testReplaceElementCleanup({transclude: true, asyncTemplate: true}); }); it('should clean data of elements replaced with directive template', function() { testReplaceElementCleanup({replace: true}); diff --git a/test/ng/directive/inputSpec.js b/test/ng/directive/inputSpec.js index d7063f2c6c7d..b6eed511aa7e 100644 --- a/test/ng/directive/inputSpec.js +++ b/test/ng/directive/inputSpec.js @@ -2082,7 +2082,7 @@ describe('input', function() { var dates = [ // Validate date ['00:00:00.0000+01:01', false], // date must be specified - ['2010.06.15T00:00:00.0000+01:01', false], // date must use dash seperator + ['2010.06.15T00:00:00.0000+01:01', false], // date must use dash separator ['x2010-06-15T00:00:00.0000+01:01', false], // invalid leading characters // Validate year @@ -2110,9 +2110,9 @@ describe('input', function() { // Validate time ['2010-01-01', false], // time must be specified - ['2010-01-0101:00:00.0000+01:01', false], // missing date time seperator - ['2010-01-01V01:00:00.0000+01:01', false], // invalid date time seperator - ['2010-01-01T01-00-00.0000+01:01', false], // time must use colon seperator + ['2010-01-0101:00:00.0000+01:01', false], // missing date time separator + ['2010-01-01V01:00:00.0000+01:01', false], // invalid date time separator + ['2010-01-01T01-00-00.0000+01:01', false], // time must use colon separator // Validate hour ['2010-01-01T01:00:00.0000+01:01', true], // hour has two digits @@ -2141,7 +2141,7 @@ describe('input', function() { // Validate milliseconds ['2010-01-01T01:00:00+01:01', false], // millisecond must be specified ['2010-01-01T01:00:00.-0000+01:01', false], // millisecond must be positive - ['2010-01-01T01:00:00:0000+01:01', false], // millisecond must use period seperator + ['2010-01-01T01:00:00:0000+01:01', false], // millisecond must use period separator ['2010-01-01T01:00:00.+01:01', false], // millisecond has too few digits // Validate timezone @@ -2163,9 +2163,9 @@ describe('input', function() { // Validate timezone minute offset ['2010-06-15T00:00:00.0000+00:-01', false], // timezone minute offset must be positive - ['2010-06-15T00:00:00.0000+00.01', false], // timezone minute offset must use colon seperator - ['2010-06-15T00:00:00.0000+0101', false], // timezone minute offset must use colon seperator - ['2010-06-15T00:00:00.0000+010', false], // timezone minute offset must use colon seperator + ['2010-06-15T00:00:00.0000+00.01', false], // timezone minute offset must use colon separator + ['2010-06-15T00:00:00.0000+0101', false], // timezone minute offset must use colon separator + ['2010-06-15T00:00:00.0000+010', false], // timezone minute offset must use colon separator ['2010-06-15T00:00:00.0000+00', false], // timezone minute offset has too few digits ['2010-06-15T00:00:00.0000+00:', false], // timezone minute offset has too few digits ['2010-06-15T00:00:00.0000+00:0', false], // timezone minute offset has too few digits diff --git a/test/ng/directive/selectSpec.js b/test/ng/directive/selectSpec.js index a0ecfa71e868..51b093728fd6 100644 --- a/test/ng/directive/selectSpec.js +++ b/test/ng/directive/selectSpec.js @@ -383,7 +383,7 @@ describe('select', function() { scope.robot = ''; compile(''); expect(element).toEqualSelect(['? string: ?']); @@ -420,7 +420,7 @@ describe('select', function() { compile(''); scope.$digest(); expect(element).toEqualSelect([unknownValue('x')], ''); diff --git a/test/ng/directive/validatorsSpec.js b/test/ng/directive/validatorsSpec.js index 224b848a42cc..9b152da7f386 100644 --- a/test/ng/directive/validatorsSpec.js +++ b/test/ng/directive/validatorsSpec.js @@ -274,7 +274,7 @@ describe('validators', function() { }); - it('should validate when the model is initalized as a number', function() { + it('should validate when the model is initialized as a number', function() { $rootScope.value = 12345; var inputElm = helper.compileInput(''); expect($rootScope.value).toBe(12345); @@ -462,7 +462,7 @@ describe('validators', function() { }); - it('should validate when the model is initalized as a number', function() { + it('should validate when the model is initialized as a number', function() { $rootScope.value = 12345; var inputElm = helper.compileInput(''); expect($rootScope.value).toBe(12345); diff --git a/test/ng/filter/orderBySpec.js b/test/ng/filter/orderBySpec.js index ba0169eaa96b..c9513d534156 100644 --- a/test/ng/filter/orderBySpec.js +++ b/test/ng/filter/orderBySpec.js @@ -266,7 +266,7 @@ describe('Filter: orderBy', function() { describe('(built-in comparator)', function() { - it('should compare numbers numarically', function() { + it('should compare numbers numerically', function() { var items = [100, 3, 20]; var expr = null; var sorted = [3, 20, 100]; diff --git a/test/ng/httpSpec.js b/test/ng/httpSpec.js index 7fe89a713800..06889b361666 100644 --- a/test/ng/httpSpec.js +++ b/test/ng/httpSpec.js @@ -949,7 +949,7 @@ describe('$http', function() { $http({ method: 'JSONP', url: $sce.trustAsResourceUrl('http://example.org/path')}); }); - it('jsonp() should accept explictly trusted urls', function() { + it('jsonp() should accept explicitly trusted urls', function() { $httpBackend.expect('JSONP', '/url?callback=JSON_CALLBACK').respond(''); $http({method: 'JSONP', url: $sce.trustAsResourceUrl('/url')}); diff --git a/test/ng/jsonpCallbacksSpec.js b/test/ng/jsonpCallbacksSpec.js index 9e77703743c0..f36f2aa2f900 100644 --- a/test/ng/jsonpCallbacksSpec.js +++ b/test/ng/jsonpCallbacksSpec.js @@ -71,7 +71,7 @@ describe('$jsonpCallbacks', function() { }); - describe('removeCallback(calbackPath)', function() { + describe('removeCallback(callbackPath)', function() { it('should remove the callback', inject(function($window, $jsonpCallbacks) { var path = $jsonpCallbacks.createCallback('http://some.dummy.com/jsonp/request'); diff --git a/test/ng/locationSpec.js b/test/ng/locationSpec.js index 21e171198f7b..ae4a6674c062 100644 --- a/test/ng/locationSpec.js +++ b/test/ng/locationSpec.js @@ -650,7 +650,7 @@ describe('$location', function() { expect(locationUrl.absUrl()).toEqual('http://host.com?q=1%2F2%203&q=4%2F5%206'); }); - it('should rewrite params when specifing a single param in search', function() { + it('should rewrite params when specifying a single param in search', function() { var locationUrl = new LocationHtml5Url('http://host.com', 'http://host.com'); locationUrl.$$parse('http://host.com'); locationUrl.search({'q': '1/2 3'}); diff --git a/test/ng/parseSpec.js b/test/ng/parseSpec.js index 6af4671b264f..252640d7e99d 100644 --- a/test/ng/parseSpec.js +++ b/test/ng/parseSpec.js @@ -591,7 +591,7 @@ describe('parser', function() { }); - it('should not confuse `this`, `$locals`, `undefined`, `true`, `false`, `null` when used as identfiers', function() { + it('should not confuse `this`, `$locals`, `undefined`, `true`, `false`, `null` when used as identifiers', function() { forEach(['this', '$locals', 'undefined', 'true', 'false', 'null'], function(identifier) { expect(createAst('foo.' + identifier)).toEqual( { @@ -701,7 +701,7 @@ describe('parser', function() { }); - it('should associate binary operators with the same precendence left-to-right', function() { + it('should associate binary operators with the same precedence left-to-right', function() { var operatorsByPrecedence = [['*', '/', '%'], ['+', '-'], ['<', '>', '<=', '>='], ['==','!=','===','!==']]; forEach(operatorsByPrecedence, function(operators) { forEach(operators, function(op1) { @@ -733,7 +733,7 @@ describe('parser', function() { }); - it('should give higher prcedence to member calls than to unary expressions', function() { + it('should give higher precedence to member calls than to unary expressions', function() { forEach(['!', '+', '-'], function(operator) { expect(createAst(operator + 'foo()')).toEqual( { diff --git a/test/ng/qSpec.js b/test/ng/qSpec.js index 3aeb139fed47..210a4d983f81 100644 --- a/test/ng/qSpec.js +++ b/test/ng/qSpec.js @@ -445,7 +445,7 @@ describe('q', function() { describe('promise', function() { describe('then', function() { - it('should allow registration of a success callback without an errback or progressback ' + + it('should allow registration of a success callback without an errback or progressBack ' + 'and resolve', function() { var promise = createPromise(); promise.then(success()); @@ -485,7 +485,7 @@ describe('q', function() { }); - it('should allow registration of an progressback without a success callback and resolve', + it('should allow registration of a progressBack without a success callback and resolve', function() { var promise = createPromise(); promise.then(null, null, progress()); @@ -495,7 +495,7 @@ describe('q', function() { }); - it('should allow registration of an progressback without a error callback and reject', + it('should allow registration of a progressBack without a error callback and reject', function() { var promise = createPromise(); promise.then(null, null, progress()); @@ -1158,7 +1158,7 @@ describe('q', function() { describe('then', function() { - it('should allow registration of a success callback without an errback or progressback ' + + it('should allow registration of a success callback without an errback or progressBack ' + 'and resolve', function() { promise.then(success()); syncResolve(deferred, 'foo'); @@ -1174,7 +1174,7 @@ describe('q', function() { }); - it('should allow registration of a success callback without an progressback and notify', + it('should allow registration of a success callback without a progressBack and notify', function() { promise.then(success()); syncNotify(deferred, 'doing'); @@ -1206,7 +1206,7 @@ describe('q', function() { }); - it('should allow registration of an progressback without a success or error callback and ' + + it('should allow registration of a progressBack without a success or error callback and ' + 'notify', function() { promise.then(null, null, progress()); syncNotify(deferred, 'doing'); @@ -1214,7 +1214,7 @@ describe('q', function() { }); - it('should allow registration of an progressback without a success callback and resolve', + it('should allow registration of a progressBack without a success callback and resolve', function() { promise.then(null, null, progress()); syncResolve(deferred, 'done'); @@ -1222,7 +1222,7 @@ describe('q', function() { }); - it('should allow registration of an progressback without a error callback and reject', + it('should allow registration of a progressBack without a error callback and reject', function() { promise.then(null, null, progress()); syncReject(deferred, 'oops!'); @@ -1655,7 +1655,7 @@ describe('q', function() { describe('notification', function() { - it('should call the progressback when the value is a promise and gets notified', + it('should call the progressBack when the value is a promise and gets notified', function() { q.when(deferred.promise, success(), error(), progress()); expect(logStr()).toBe(''); @@ -1706,7 +1706,7 @@ describe('q', function() { }); - it('should not require progressback and propagate notification', function() { + it('should not require progressBack and propagate notification', function() { q.when(deferred.promise). then(success(), error(), progress()); expect(logStr()).toBe(''); @@ -1820,7 +1820,7 @@ describe('q', function() { }); - it('should not call progressback after promise gets fulfilled, even if original promise ' + + it('should not call progressBack after promise gets fulfilled, even if original promise ' + 'gets notified multiple times', function() { var evilPromise = { then: function(success, error, progress) { @@ -2113,7 +2113,7 @@ describe('q', function() { }); - it('should log exceptions throw in a progressack and stop propagation, but shoud NOT reject ' + + it('should log exceptions thrown in a progressBack and stop propagation, but should NOT reject ' + 'the promise', function() { promise.then(success(), error(), progress(1, 'failed', true)).then(null, error(1), progress(2)).catch(noop); syncNotify(deferred, '10%'); diff --git a/test/ng/rafSpec.js b/test/ng/rafSpec.js index e4b364cc8bbf..e944599a5580 100644 --- a/test/ng/rafSpec.js +++ b/test/ng/rafSpec.js @@ -32,7 +32,7 @@ describe('$$rAF', function() { })); describe('$timeout fallback', function() { - it('it should use a $timeout incase native rAF isn\'t suppored', function() { + it('it should use a $timeout incase native rAF isn\'t supported', function() { var timeoutSpy = jasmine.createSpy('callback'); //we need to create our own injector to work around the ngMock overrides diff --git a/test/ng/rootScopeSpec.js b/test/ng/rootScopeSpec.js index 93b8140f9356..737fba9fb986 100644 --- a/test/ng/rootScopeSpec.js +++ b/test/ng/rootScopeSpec.js @@ -545,7 +545,7 @@ describe('Scope', function() { listener.calls.reset(); $rootScope.foo = 'bar'; - $rootScope.$digest(); //triger + $rootScope.$digest(); //trigger expect(listener).toHaveBeenCalledOnce(); listener.calls.reset(); diff --git a/test/ngAnimate/animateSpec.js b/test/ngAnimate/animateSpec.js index 76ddc34ddabd..e1f37c4e4462 100644 --- a/test/ngAnimate/animateSpec.js +++ b/test/ngAnimate/animateSpec.js @@ -2174,7 +2174,7 @@ describe('animations', function() { } })); - it('should use RAF if there are detected callbacks within the hierachy of the element being animated', + it('should use RAF if there are detected callbacks within the hierarchy of the element being animated', inject(function($animate, $rootScope, $rootElement, $$rAF) { var runner; diff --git a/test/ngMessages/messagesSpec.js b/test/ngMessages/messagesSpec.js index a12a0ff11da8..bf060ed65c8c 100644 --- a/test/ngMessages/messagesSpec.js +++ b/test/ngMessages/messagesSpec.js @@ -322,7 +322,7 @@ describe('ngMessages', function() { expect(element.hasClass('ng-inactive')).toBe(false); })); - it('should automatically re-render the messages when other directives dynmically change them', + it('should automatically re-render the messages when other directives dynamically change them', inject(function($rootScope, $compile) { element = $compile('
' + diff --git a/test/ngMock/angular-mocksSpec.js b/test/ngMock/angular-mocksSpec.js index 317b079779e2..c5f138be2730 100644 --- a/test/ngMock/angular-mocksSpec.js +++ b/test/ngMock/angular-mocksSpec.js @@ -1781,7 +1781,7 @@ describe('ngMock', function() { expect(callback).toHaveBeenCalledOnceWith(200, 'path', '', ''); } ); - they('should match colon deliminated parameters in ' + routeShortcut + ' $prop method', methods, + they('should match colon delimited parameters in ' + routeShortcut + ' $prop method', methods, function() { hb[routeShortcut](this, '/route/:id/path/:s_id').respond('path'); hb(this, '/route/123/path/456', undefined, callback); @@ -2856,7 +2856,7 @@ describe('sharedInjector', function() { // we use the 'module' and 'inject' globals from ngMock - it('allowes me to mutate a single instace of a module (proving it has been shared)', ngMockTest(function() { + it('allows me to mutate a single instance of a module (proving it has been shared)', ngMockTest(function() { sdescribe('test state is shared', function() { angular.module('sharedInjectorTestModuleA', []) .factory('testService', function() { diff --git a/test/ngResource/resourceSpec.js b/test/ngResource/resourceSpec.js index 2747253dbe1c..41dc071b37a7 100644 --- a/test/ngResource/resourceSpec.js +++ b/test/ngResource/resourceSpec.js @@ -1287,7 +1287,7 @@ describe('basic usage', function() { expect(user).toEqualData([{id: 1, name: 'user1'}]); }); - it('should work with the action is overriden', function() { + it('should work with the action is overridden', function() { $httpBackend.expect('GET', '/users.json').respond([{id: 1, name: 'user1'}]); var UserService = $resource('/users/:user_id', {user_id: '@id'}, { query: { @@ -1348,7 +1348,7 @@ describe('basic usage', function() { expect(user).toEqualData({id: 1, name: 'user1'}); }); - it('should work with the action is overriden', function() { + it('should work with the action is overridden', function() { $httpBackend.expect('GET', '/users/1.json').respond({id: 1, name: 'user1'}); var UserService = $resource('/users/:user_id', {user_id: '@id'}, { get: { diff --git a/test/ngSanitize/sanitizeSpec.js b/test/ngSanitize/sanitizeSpec.js index f5e3705f9bd6..d7e3105f155b 100644 --- a/test/ngSanitize/sanitizeSpec.js +++ b/test/ngSanitize/sanitizeSpec.js @@ -352,7 +352,7 @@ describe('HTML', function() { expect(html).toEqual('
'); }); - it('should ignore missformed elements', function() { + it('should ignore misformed elements', function() { writer.start('d>i&v', {}); expect(html).toEqual(''); }); @@ -508,7 +508,7 @@ describe('HTML', function() { expect('j avascript:').not.toBeValidUrl(); }); - it('should ignore decimal with leading 0 encodede javascript:', function() { + it('should ignore decimal with leading 0 encoded javascript:', function() { expect('javascript:').not.toBeValidUrl(); expect('j avascript:').not.toBeValidUrl(); expect('j avascript:').not.toBeValidUrl(); diff --git a/test/ngScenario/mocks.js b/test/ngScenario/mocks.js index e135390f039d..849d78d9bba9 100644 --- a/test/ngScenario/mocks.js +++ b/test/ngScenario/mocks.js @@ -12,7 +12,7 @@ angular.scenario.testing.MockAngular.prototype.reset = function() { }; angular.scenario.testing.MockAngular.prototype.poll = function() { - this.log.push('$brower.poll()'); + this.log.push('$browser.poll()'); return this; }; diff --git a/test/ngTouch/directive/ngSwipeSpec.js b/test/ngTouch/directive/ngSwipeSpec.js index 1f2b7440dd83..a2ba563c9903 100644 --- a/test/ngTouch/directive/ngSwipeSpec.js +++ b/test/ngTouch/directive/ngSwipeSpec.js @@ -232,6 +232,6 @@ var swipeTests = function(description, restrictBrowsers, startEvent, moveEvent, }); }; -swipeTests('touch', /* restrictBrowers */ true, 'touchstart', 'touchmove', 'touchend'); -swipeTests('mouse', /* restrictBrowers */ false, 'mousedown', 'mousemove', 'mouseup'); +swipeTests('touch', /* restrictBrowsers */ true, 'touchstart', 'touchmove', 'touchend'); +swipeTests('mouse', /* restrictBrowsers */ false, 'mousedown', 'mousemove', 'mouseup'); diff --git a/test/ngTouch/swipeSpec.js b/test/ngTouch/swipeSpec.js index 790594e20197..ae54316308a8 100644 --- a/test/ngTouch/swipeSpec.js +++ b/test/ngTouch/swipeSpec.js @@ -79,9 +79,9 @@ describe('$swipe', function() { }); - swipeTests('touch', /* restrictBrowers */ true, 'touchstart', 'touchmove', 'touchend'); - swipeTests('pointer', /* restrictBrowers */ true, 'pointerdown', 'pointermove', 'pointerup'); - swipeTests('mouse', /* restrictBrowers */ false, 'mousedown', 'mousemove', 'mouseup'); + swipeTests('touch', /* restrictBrowsers */ true, 'touchstart', 'touchmove', 'touchend'); + swipeTests('pointer', /* restrictBrowsers */ true, 'pointerdown', 'pointermove', 'pointerup'); + swipeTests('mouse', /* restrictBrowsers */ false, 'mousedown', 'mousemove', 'mouseup'); // Wrapper to abstract over using touch events or mouse events. function swipeTests(description, restrictBrowsers, startEvent, moveEvent, endEvent) {