Skip to content

Commit 7cbd2cd

Browse files
committed
Merging upstream changes. Changed unit test to be in the right place
2 parents 4d86f4f + 7ce7e09 commit 7cbd2cd

File tree

850 files changed

+155594
-37206
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

850 files changed

+155594
-37206
lines changed

.github/ISSUE_TEMPLATE.md

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,27 @@
1-
**Note: for support questions, please use one of these channels:** https://github.com/angular/angular.js/blob/master/CONTRIBUTING.md#question. This repository's issues are reserved for feature requests and bug reports.
1+
***Note*: for support questions, please use one of these channels: https://github.com/angular/angular.js/blob/master/CONTRIBUTING.md#question. This repository's issues are reserved for feature requests and bug reports.**
22

3-
* **Do you want to request a *feature* or report a *bug*?**
3+
**Do you want to request a *feature* or report a *bug*?**
44

55

66

7-
* **What is the current behavior?**
7+
**What is the current behavior?**
88

99

1010

11-
* **If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem** via
12-
https://plnkr.co or similar (you can use this template as a starting point: http://plnkr.co/edit/tpl:yBpEi4).
11+
**If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem via https://plnkr.co or similar (template: http://plnkr.co/edit/tpl:yBpEi4).**
1312

1413

1514

16-
* **What is the expected behavior?**
15+
**What is the expected behavior?**
1716

1817

1918

20-
* **What is the motivation / use case for changing the behavior?**
19+
**What is the motivation / use case for changing the behavior?**
2120

2221

2322

24-
* **Which version of Angular, and which browser and OS does this issue affect?** Did this work in previous
25-
versions of Angular? Please also test with the latest stable ánd snapshot versions.
23+
**Which versions of Angular, and which browser / OS are affected by this issue? Did this work in previous versions of Angular? Please also test with the latest stable and snapshot (https://code.angularjs.org/snapshot/) versions.**
2624

2725

2826

29-
* **Other information** (e.g. detailed explanation, stacktraces, related issues, suggestions how to fix)
27+
**Other information (e.g. stacktraces, related issues, suggestions how to fix)**

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
1-
* **What kind of change does this PR introduce?** (Bug fix, feature, docs update, ...)
1+
**What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)**
22

33

44

5-
* **What is the current behavior?** (You can also link to an open issue here)
5+
**What is the current behavior? (You can also link to an open issue here)**
66

77

88

9-
* **What is the new behavior (if this is a feature change)?**
9+
**What is the new behavior (if this is a feature change)?**
1010

1111

1212

13-
* **Does this PR introduce a breaking change?**
13+
**Does this PR introduce a breaking change?**
1414

1515

1616

17-
* **Please check if the PR fulfills these requirements**
17+
**Please check if the PR fulfills these requirements**
1818
- [ ] The commit message follows our guidelines: https://github.com/angular/angular.js/blob/master/CONTRIBUTING.md#commit-message-format
1919
- [ ] Tests for the changes have been added (for bug fixes / features)
2020
- [ ] Docs have been added / updated (for bug fixes / features)
2121

22-
* **Other information**:
22+
**Other information**:
2323

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,6 @@ libpeerconnection.log
2020
npm-debug.log
2121
/tmp/
2222
/scripts/bower/bower-*
23+
.vscode
24+
*.log
25+
*.stackdump

.jshintrc-base

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,24 @@
11
{
22
"bitwise": true,
3+
"esversion": 6,
34
"immed": true,
45
"newcap": true,
56
"noarg": true,
67
"noempty": true,
78
"nonew": true,
8-
"trailing": true,
99
"maxlen": 200,
1010
"boss": true,
1111
"eqnull": true,
1212
"expr": true,
13-
"globalstrict": true,
1413
"laxbreak": true,
1514
"loopfunc": true,
15+
"strict": "global",
1616
"sub": true,
1717
"undef": true,
18-
"indent": 2
18+
"indent": 2,
19+
20+
"globals": {
21+
"ArrayBuffer": false,
22+
"Uint8Array": false
23+
}
1924
}

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
language: node_js
22
sudo: false
33
node_js:
4-
- '4.2'
4+
- '4.4'
55

66
cache:
77
directories:

CHANGELOG.md

Lines changed: 597 additions & 16 deletions
Large diffs are not rendered by default.

CONTRIBUTING.md

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,12 @@ If you find a bug in the source code or a mistake in the documentation, you can
2626
submitting an issue to our [GitHub Repository][github]. Even better you can submit a Pull Request
2727
with a fix.
2828

29-
***Localization Issue:*** *Angular.js uses the [Google Closure I18N library], to generate its own I18N files. This means that
30-
any changes to these files would be lost the next time that we import the library. The recommended
31-
approach is to submit a patch to the I18N project directly, instead of submitting it here.*
29+
**Localization Issues:** Angular.js uses the [Google Closure I18N library] to generate
30+
its own I18N files (the ngLocale module). This means that any changes to these files would be lost
31+
the next time that we import the library.
32+
Since the Closure library i18n data is itself auto-generated from the data of the
33+
[Common Locale Data Repository (CLDR)] project, errors in the data should
34+
be reported there. See also the [Closure guide to i18n changes].
3235

3336
**Please see the Submission Guidelines below**.
3437

@@ -280,12 +283,14 @@ You can find out more detailed information about contributing in the
280283
[groups]: https://groups.google.com/forum/?fromgroups#!forum/angular
281284
[individual-cla]: http://code.google.com/legal/individual-cla-v1.0.html
282285
[irc]: http://webchat.freenode.net/?channels=angularjs&uio=d4
283-
[js-style-guide]: http://google-styleguide.googlecode.com/svn/trunk/javascriptguide.xml
286+
[js-style-guide]: https://google.github.io/styleguide/javascriptguide.xml
284287
[jsfiddle]: http://jsfiddle.net/
285288
[list]: https://groups.google.com/forum/?fromgroups#!forum/angular
286289
[ngDocs]: https://github.com/angular/angular.js/wiki/Writing-AngularJS-Documentation
287290
[plunker]: http://plnkr.co/edit
288291
[stackoverflow]: http://stackoverflow.com/questions/tagged/angularjs
289292
[unit-testing]: https://docs.angularjs.org/guide/unit-testing
293+
[Common Locale Data Repository (CLDR)]: http://cldr.unicode.org
294+
[Closure guide to i18n changes]: https://github.com/google/closure-library/wiki/Internationalization-%28i18n%29-changes-in-Closure-Library
290295
291296
[![Analytics](https://ga-beacon.appspot.com/UA-8594346-11/angular.js/CONTRIBUTING.md?pixel)](https://github.com/igrigorik/ga-beacon)

Gruntfile.js

Lines changed: 25 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ module.exports = function(grunt) {
1717
NG_VERSION.cdn = versionInfo.cdnVersion;
1818
var dist = 'angular-'+ NG_VERSION.full;
1919

20+
if (versionInfo.cdnVersion == null) {
21+
throw new Error('Unable to read CDN version, are you offline or has the CDN not been properly pushed?');
22+
}
23+
2024
//config
2125
grunt.initConfig({
2226
NG_VERSION: NG_VERSION,
@@ -79,6 +83,7 @@ module.exports = function(grunt) {
7983
tests: {
8084
jqlite: 'karma-jqlite.conf.js',
8185
jquery: 'karma-jquery.conf.js',
86+
'jquery-2.1': 'karma-jquery-2.1.conf.js',
8287
docs: 'karma-docs.conf.js',
8388
modules: 'karma-modules.conf.js'
8489
},
@@ -87,6 +92,7 @@ module.exports = function(grunt) {
8792
autotest: {
8893
jqlite: 'karma-jqlite.conf.js',
8994
jquery: 'karma-jquery.conf.js',
95+
'jquery-2.1': 'karma-jquery-2.1.conf.js',
9096
modules: 'karma-modules.conf.js',
9197
docs: 'karma-docs.conf.js'
9298
},
@@ -135,6 +141,9 @@ module.exports = function(grunt) {
135141
ngMock: {
136142
files: { src: 'src/ngMock/**/*.js' },
137143
},
144+
ngParseExt: {
145+
files: { src: 'src/ngParseExt/**/*.js' },
146+
},
138147
ngResource: {
139148
files: { src: 'src/ngResource/**/*.js' },
140149
},
@@ -231,7 +240,11 @@ module.exports = function(grunt) {
231240
dest: 'build/angular-aria.js',
232241
src: util.wrap(files['angularModules']['ngAria'], 'module')
233242
},
234-
'promises-aplus-adapter': {
243+
parseext: {
244+
dest: 'build/angular-parse-ext.js',
245+
src: util.wrap(files['angularModules']['ngParseExt'], 'module')
246+
},
247+
"promises-aplus-adapter": {
235248
dest:'tmp/promises-aplus-adapter++.js',
236249
src:['src/ng/q.js', 'lib/promises-aplus/promises-aplus-test-adapter.js']
237250
}
@@ -249,7 +262,8 @@ module.exports = function(grunt) {
249262
resource: 'build/angular-resource.js',
250263
route: 'build/angular-route.js',
251264
sanitize: 'build/angular-sanitize.js',
252-
aria: 'build/angular-aria.js'
265+
aria: 'build/angular-aria.js',
266+
parseext: 'build/angular-parse-ext.js'
253267
},
254268

255269

@@ -264,12 +278,17 @@ module.exports = function(grunt) {
264278
],
265279
options: {
266280
disallowed: [
281+
'fit',
267282
'iit',
268283
'xit',
284+
'fthey',
269285
'tthey',
270286
'xthey',
287+
'fdescribe',
271288
'ddescribe',
272-
'xdescribe'
289+
'xdescribe',
290+
'it.only',
291+
'describe.only'
273292
]
274293
}
275294
},
@@ -344,10 +363,11 @@ module.exports = function(grunt) {
344363
//alias tasks
345364
grunt.registerTask('test', 'Run unit, docs and e2e tests with Karma', ['jshint', 'jscs', 'package', 'test:unit', 'test:promises-aplus', 'tests:docs', 'test:protractor']);
346365
grunt.registerTask('test:jqlite', 'Run the unit tests with Karma' , ['tests:jqlite']);
347-
grunt.registerTask('test:jquery', 'Run the jQuery unit tests with Karma', ['tests:jquery']);
366+
grunt.registerTask('test:jquery', 'Run the jQuery (latest) unit tests with Karma', ['tests:jquery']);
367+
grunt.registerTask('test:jquery-2.1', 'Run the jQuery 2.1 unit tests with Karma', ['tests:jquery-2.1']);
348368
grunt.registerTask('test:modules', 'Run the Karma module tests with Karma', ['build', 'tests:modules']);
349369
grunt.registerTask('test:docs', 'Run the doc-page tests with Karma', ['package', 'tests:docs']);
350-
grunt.registerTask('test:unit', 'Run unit, jQuery and Karma module tests with Karma', ['test:jqlite', 'test:jquery', 'test:modules']);
370+
grunt.registerTask('test:unit', 'Run unit, jQuery and Karma module tests with Karma', ['test:jqlite', 'test:jquery', 'test:jquery-2.1', 'test:modules']);
351371
grunt.registerTask('test:protractor', 'Run the end to end tests with Protractor and keep a test server running in the background', ['webdriver', 'connect:testserver', 'protractor:normal']);
352372
grunt.registerTask('test:travis-protractor', 'Run the end to end tests with Protractor for Travis CI builds', ['connect:testserver', 'protractor:travis']);
353373
grunt.registerTask('test:ci-protractor', 'Run the end to end tests with Protractor for Jenkins CI builds', ['webdriver', 'connect:testserver', 'protractor:jenkins']);

README.md

Lines changed: 20 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -8,20 +8,22 @@ synchronizes data from your UI (view) with your JavaScript objects (model) throu
88
binding. To help you structure your application better and make it easy to test, AngularJS teaches
99
the browser how to do dependency injection and inversion of control.
1010

11-
Oh yeah and it helps with server-side communication, taming async callbacks with promises and
12-
deferreds. It also makes client-side navigation and deeplinking with hashbang urls or HTML5 pushState a
13-
piece of cake. Best of all?? It makes development fun!
14-
15-
* Web site: http://angularjs.org
16-
* Tutorial: http://docs.angularjs.org/tutorial
17-
* API Docs: http://docs.angularjs.org/api
18-
* Developer Guide: http://docs.angularjs.org/guide
11+
It also helps with server-side communication, taming async callbacks with promises and deferreds,
12+
and it makes client-side navigation and deeplinking with hashbang urls or HTML5 pushState a
13+
piece of cake. Best of all? It makes development fun!
14+
15+
* Web site: https://angularjs.org
16+
* Tutorial: https://docs.angularjs.org/tutorial
17+
* API Docs: https://docs.angularjs.org/api
18+
* Developer Guide: https://docs.angularjs.org/guide
1919
* Contribution guidelines: [CONTRIBUTING.md](https://github.com/angular/angular.js/blob/master/CONTRIBUTING.md)
20-
* Dashboard: http://dashboard.angularjs.org
21-
20+
* Dashboard: https://dashboard.angularjs.org
21+
22+
##### Looking for Angular 2? Go here: https://github.com/angular/angular
23+
2224
Building AngularJS
2325
---------
24-
[Once you have your environment set up](http://docs.angularjs.org/misc/contribute) just run:
26+
[Once you have set up your environment](https://docs.angularjs.org/misc/contribute), just run:
2527

2628
grunt package
2729

@@ -37,8 +39,12 @@ To execute end-to-end (e2e) tests, use:
3739
grunt package
3840
grunt test:e2e
3941

40-
To learn more about the grunt tasks, run `grunt --help` and also read our
41-
[contribution guidelines](https://github.com/angular/angular.js/blob/master/CONTRIBUTING.md).
42+
To learn more about the grunt tasks, run `grunt --help`
43+
44+
Contribute & Develop
45+
--------------------
46+
47+
We've set up a separate document for our [contribution guidelines](https://github.com/angular/angular.js/blob/master/CONTRIBUTING.md).
4248

4349

4450
[![Analytics](https://ga-beacon.appspot.com/UA-8594346-11/angular.js/README.md?pixel)](https://github.com/igrigorik/ga-beacon)
@@ -48,7 +54,7 @@ What to use AngularJS for and when to use it
4854
AngularJS is the next generation framework where each component is designed to work with every other component in an interconnected way like a well-oiled machine. AngularJS is JavaScript MVC made easy and done right. (Well it is not really MVC, read on, to understand what this means.)
4955

5056
#### MVC, no, MV* done the right way!
51-
MVC, short for Model-View-Controller, is a design pattern, i.e. how the code should be organized and how the different parts of an application separated for proper readability and debugging. Model is the data and the database. View is the user interface and what the user sees. Controller is the main link between Model and View. These are the three pillars of major programming frameworks present on the market today. On the other hand AngularJS works on MV*, short for Model-View-_Whatever_. The _Whatever_ is AngularJS's way of telling that you may create any kind of linking between the Model and the View here.
57+
MVC, short for Model-View-Controller, is a design pattern, i.e. how the code should be organized and how the different parts of an application separated for proper readability and debugging. Model is the data and the database. View is the user interface and what the user sees. Controller is the main link between Model and View. These are the three pillars of major programming frameworks present on the market today. On the other hand AngularJS works on MV*, short for Model-View-_Whatever_. The _Whatever_ is AngularJS's way of telling that you may create any kind of linking between the Model and the View here.
5258

5359
Unlike other frameworks in any programming language, where MVC, the three separate components, each one has to be written and then connected by the programmer, AngularJS helps the programmer by asking him/her to just create these and everything else will be taken care of by AngularJS.
5460

angularFiles.js

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ var angularFiles = {
55
'src/minErr.js',
66
'src/Angular.js',
77
'src/loader.js',
8+
'src/shallowCopy.js',
89
'src/stringify.js',
910
'src/AngularPublic.js',
1011
'src/jqLite.js',
@@ -27,6 +28,7 @@ var angularFiles = {
2728
'src/ng/httpBackend.js',
2829
'src/ng/interpolate.js',
2930
'src/ng/interval.js',
31+
'src/ng/jsonpCallbacks.js',
3032
'src/ng/locale.js',
3133
'src/ng/location.js',
3234
'src/ng/log.js',
@@ -120,10 +122,15 @@ var angularFiles = {
120122
'ngMessages': [
121123
'src/ngMessages/messages.js'
122124
],
125+
'ngParseExt': [
126+
'src/ngParseExt/ucd.js',
127+
'src/ngParseExt/module.js'
128+
],
123129
'ngResource': [
124130
'src/ngResource/resource.js'
125131
],
126132
'ngRoute': [
133+
'src/shallowCopy.js',
127134
'src/ngRoute/route.js',
128135
'src/ngRoute/routeParams.js',
129136
'src/ngRoute/directive/ngView.js'
@@ -133,7 +140,8 @@ var angularFiles = {
133140
'src/ngSanitize/filter/linky.js'
134141
],
135142
'ngMock': [
136-
'src/ngMock/angular-mocks.js'
143+
'src/ngMock/angular-mocks.js',
144+
'src/ngMock/browserTrigger.js'
137145
],
138146
'ngTouch': [
139147
'src/ngTouch/touch.js',
@@ -148,7 +156,6 @@ var angularFiles = {
148156

149157
'angularScenario': [
150158
'src/ngScenario/Scenario.js',
151-
'src/ngScenario/browserTrigger.js',
152159
'src/ngScenario/Application.js',
153160
'src/ngScenario/Describe.js',
154161
'src/ngScenario/Future.js',
@@ -171,6 +178,7 @@ var angularFiles = {
171178
'test/auto/*.js',
172179
'test/ng/**/*.js',
173180
'test/ngAnimate/*.js',
181+
'test/ngMessageFormat/*.js',
174182
'test/ngMessages/*.js',
175183
'test/ngCookies/*.js',
176184
'test/ngResource/*.js',
@@ -205,9 +213,11 @@ var angularFiles = {
205213
"karmaModules": [
206214
'build/angular.js',
207215
'@angularSrcModules',
208-
'src/ngScenario/browserTrigger.js',
216+
'test/modules/no_bootstrap.js',
209217
'test/helpers/*.js',
218+
'test/ngAnimate/*.js',
210219
'test/ngMessageFormat/*.js',
220+
'test/ngMessages/*.js',
211221
'test/ngMock/*.js',
212222
'test/ngCookies/*.js',
213223
'test/ngRoute/**/*.js',
@@ -226,6 +236,15 @@ var angularFiles = {
226236
'@angularTest'
227237
],
228238

239+
'karmaJqueryOld': [
240+
'bower_components/jquery-2.1/dist/jquery.js',
241+
'test/jquery_alias.js',
242+
'@angularSrc',
243+
'@angularSrcModules',
244+
'@angularScenario',
245+
'@angularTest'
246+
],
247+
229248
'karmaJqueryExclude': [
230249
'src/angular-bootstrap.js',
231250
'src/ngScenario/angular-bootstrap.js',

bower.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
"name": "AngularJS",
33
"license": "MIT",
44
"devDependencies": {
5-
"jquery": "2.1.1",
5+
"jquery": "2.2.3",
6+
"jquery-2.1": "jquery#2.1.4",
67
"closure-compiler": "https://dl.google.com/closure-compiler/compiler-20140814.zip",
78
"ng-closure-runner": "https://raw.github.com/angular/ng-closure-runner/v0.2.3/assets/ng-closure-runner.zip"
89
}

0 commit comments

Comments
 (0)