Skip to content

Commit 0fc8516

Browse files
committed
Revert "tests(jQuery): test on both oldest & latest supported jQuery version"
This reverts commit 94572e8. The commit snuck in while cherry-picking commits from master.
1 parent 28b2a9b commit 0fc8516

File tree

10 files changed

+10
-42
lines changed

10 files changed

+10
-42
lines changed

.travis.yml

-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ env:
1919
- JOB=unit BROWSER_PROVIDER=saucelabs
2020
- JOB=docs-e2e BROWSER_PROVIDER=saucelabs
2121
- JOB=e2e TEST_TARGET=jqlite BROWSER_PROVIDER=saucelabs
22-
- JOB=e2e TEST_TARGET=jquery-2.1 BROWSER_PROVIDER=saucelabs
2322
- JOB=e2e TEST_TARGET=jquery BROWSER_PROVIDER=saucelabs
2423
global:
2524
- CXX=g++-4.8 # node 4 likes the G++ v4.8 compiler

Gruntfile.js

+2-5
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,6 @@ module.exports = function(grunt) {
7979
tests: {
8080
jqlite: 'karma-jqlite.conf.js',
8181
jquery: 'karma-jquery.conf.js',
82-
'jquery-2.1': 'karma-jquery-2.1.conf.js',
8382
docs: 'karma-docs.conf.js',
8483
modules: 'karma-modules.conf.js'
8584
},
@@ -88,7 +87,6 @@ module.exports = function(grunt) {
8887
autotest: {
8988
jqlite: 'karma-jqlite.conf.js',
9089
jquery: 'karma-jquery.conf.js',
91-
'jquery-2.1': 'karma-jquery-2.1.conf.js',
9290
modules: 'karma-modules.conf.js',
9391
docs: 'karma-docs.conf.js'
9492
},
@@ -346,11 +344,10 @@ module.exports = function(grunt) {
346344
//alias tasks
347345
grunt.registerTask('test', 'Run unit, docs and e2e tests with Karma', ['jshint', 'jscs', 'package', 'test:unit', 'test:promises-aplus', 'tests:docs', 'test:protractor']);
348346
grunt.registerTask('test:jqlite', 'Run the unit tests with Karma' , ['tests:jqlite']);
349-
grunt.registerTask('test:jquery', 'Run the jQuery (latest) unit tests with Karma', ['tests:jquery']);
350-
grunt.registerTask('test:jquery-2.1', 'Run the jQuery 2.1 unit tests with Karma', ['tests:jquery-2.1']);
347+
grunt.registerTask('test:jquery', 'Run the jQuery unit tests with Karma', ['tests:jquery']);
351348
grunt.registerTask('test:modules', 'Run the Karma module tests with Karma', ['build', 'tests:modules']);
352349
grunt.registerTask('test:docs', 'Run the doc-page tests with Karma', ['package', 'tests:docs']);
353-
grunt.registerTask('test:unit', 'Run unit, jQuery and Karma module tests with Karma', ['test:jqlite', 'test:jquery', 'test:jquery-2.1', 'test:modules']);
350+
grunt.registerTask('test:unit', 'Run unit, jQuery and Karma module tests with Karma', ['test:jqlite', 'test:jquery', 'test:modules']);
354351
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']);
355352
grunt.registerTask('test:travis-protractor', 'Run the end to end tests with Protractor for Travis CI builds', ['connect:testserver', 'protractor:travis']);
356353
grunt.registerTask('test:ci-protractor', 'Run the end to end tests with Protractor for Jenkins CI builds', ['webdriver', 'connect:testserver', 'protractor:jenkins']);

angularFiles.js

-9
Original file line numberDiff line numberDiff line change
@@ -227,15 +227,6 @@ var angularFiles = {
227227
'@angularTest'
228228
],
229229

230-
'karmaJqueryOld': [
231-
'bower_components/jquery-2.1/dist/jquery.js',
232-
'test/jquery_alias.js',
233-
'@angularSrc',
234-
'@angularSrcModules',
235-
'@angularScenario',
236-
'@angularTest'
237-
],
238-
239230
'karmaJqueryExclude': [
240231
'src/angular-bootstrap.js',
241232
'src/ngScenario/angular-bootstrap.js',

bower.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@
22
"name": "AngularJS",
33
"license": "MIT",
44
"devDependencies": {
5-
"jquery": "2.2.1",
6-
"jquery-2.1": "jquery#2.1.4",
5+
"jquery": "2.1.1",
76
"closure-compiler": "https://dl.google.com/closure-compiler/compiler-20140814.zip",
87
"ng-closure-runner": "https://raw.github.com/angular/ng-closure-runner/v0.2.3/assets/ng-closure-runner.zip"
98
}

docs/bower.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "AngularJS-docs-app",
33
"dependencies": {
4-
"jquery": "2.2.1",
4+
"jquery": "2.1.1",
55
"lunr.js": "0.5.12",
66
"open-sans-fontface": "1.0.4",
77
"google-code-prettify": "1.0.1",

docs/content/tutorial/step_07.ngdoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ We are using [Bower][bower] to install client-side dependencies. This step upda
3535
"dependencies": {
3636
"angular": "1.4.x",
3737
"angular-mocks": "1.4.x",
38-
"jquery": "~2.2.1",
38+
"jquery": "~2.1.1",
3939
"bootstrap": "~3.1.1",
4040
"angular-route": "1.4.x"
4141
}

docs/content/tutorial/step_11.ngdoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ We are using [Bower][bower] to install client side dependencies. This step upda
3434
"dependencies": {
3535
"angular": "1.4.x",
3636
"angular-mocks": "1.4.x",
37-
"jquery": "~2.2.1",
37+
"jquery": "~2.1.1",
3838
"bootstrap": "~3.1.1",
3939
"angular-route": "1.4.x",
4040
"angular-resource": "1.4.x"

docs/content/tutorial/step_12.ngdoc

+2-2
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ We are using [Bower][bower] to install client side dependencies. This step upda
3838
"dependencies": {
3939
"angular": "1.4.x",
4040
"angular-mocks": "1.4.x",
41-
"jquery": "~2.2.1",
41+
"jquery": "~2.1.1",
4242
"bootstrap": "~3.1.1",
4343
"angular-route": "1.4.x",
4444
"angular-resource": "1.4.x",
@@ -49,7 +49,7 @@ We are using [Bower][bower] to install client side dependencies. This step upda
4949

5050
* `"angular-animate": "1.4.x"` tells bower to install a version of the
5151
angular-animate component that is compatible with version 1.4.x.
52-
* `"jquery": "~2.2.1"` tells bower to install the 2.2.1 version of jQuery. Note that this is not an
52+
* `"jquery": "~2.1.1"` tells bower to install the 2.1.1 version of jQuery. Note that this is not an
5353
Angular library, it is the standard jQuery library. We can use bower to install a wide range of 3rd
5454
party libraries.
5555

karma-jquery-2.1.conf.js

-18
This file was deleted.

scripts/travis/build.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,12 @@ elif [ $JOB = "unit" ]; then
2020
elif [ $JOB = "docs-e2e" ]; then
2121
grunt test:travis-protractor --specs "docs/app/e2e/**/*.scenario.js"
2222
elif [ $JOB = "e2e" ]; then
23-
if [[ $TEST_TARGET == jquery* ]]; then
23+
if [ $TEST_TARGET = "jquery" ]; then
2424
export USE_JQUERY=1
2525
fi
2626

2727
export TARGET_SPECS="build/docs/ptore2e/**/default_test.js"
28-
if [[ $TEST_TARGET == jquery* ]]; then
28+
if [ $TEST_TARGET = "jquery" ]; then
2929
TARGET_SPECS="build/docs/ptore2e/**/jquery_test.js"
3030
fi
3131

0 commit comments

Comments
 (0)