Commit Graph

5753 Commits

Author SHA1 Message Date
Michał Gołębiowski
c7d458fb9e Tests: Backport basic tests from master
Commit 2c7e9c9 added the basic test suite; these are the only tests that
are now run on Android 2.3 on master. On compat we're keeping full Android 2.3
support for now but the tests and the testswarm basic run mode have been
cherry-picked anyway to reduce the divergence between branches.

(cherry-picked from 2c7e9c9349)

Fixes gh-2505
Closes gh-2509
Refs gh-2483
2015-09-08 18:10:51 +02:00
Michał Gołębiowski
5f1c7fc81e Build: Don't install jsdom 3 on Node.js 0.10 & 0.12 by default
jsdom 3 requires Python & Visual Studio on Windows which is a significant
barrier to contributors. Newer jsdom versions don't require pre-compiling
but work only on io.js. This commit installs the new jsdom everywhere (it
does install in old Node.js, it just won't work) and executes Node-related
tests only on newer Nodes or if a working jsdom version is installed. The
latter can be achieved by running the `old_jsdom` task.

Node.js is merging with io.js soon so this will become a smaller problem over
time.

One drawback is our Jenkins setup runs on Node 0.10 so it won't be running
Node tests anymore. We have Travis set up on io.js, though so all PRs
have those tests run. When the new LTS Node.js arrives (as it soon merges
with io.js) we should update our Jenkins infrastructure so that it runs on this
new version.

(cherry-picked from dbb2daa8c3)

Fixes gh-2519
Closes gh-2526
2015-09-08 17:50:33 +02:00
Michał Gołębiowski
8c851bfdb9 Traversing: Don't expose jQuery.dir & jQuery.sibling
jQuery.dir & jQuery.sibling are undocumented internal APIs; they shouldn't
be exposed.

(cherry-picked from f9ef427d35)

Fixes gh-2512
Closes gh-2525
2015-09-08 17:39:28 +02:00
Oleg Gaidarenko
d8b7e7b0bd Tests: more style corrections
Provocated by jscs-dev/node-jscs@2de68c0

Ref c161eecce0
2015-09-08 04:26:33 +03:00
Oleg Gaidarenko
2f0cedc997 Tests: further improvements QUnit 2.0 migration
* Remove QUnit jshint globals
* Extend QUnit.assert methods
* Use assert.async instead of start/stop/done

Ref b930d14ce6
Ref c8d15a2f9f
2015-09-08 04:15:54 +03:00
Thomas Tortorini
f71e32d4b4 Effects: Finish should call progress
(cherry-picked from 3dd3d1357d)

Fixes gh-2283
Closes gh-2292
2015-09-08 02:42:47 +02:00
Yongwoo Jeon
dc76dca295 Core: Remove unnecessary parameter to jQuery#constructor
(cherry-picked from 98cee73244)

Closes gh-2441
2015-09-08 02:42:26 +02:00
Batiste Bieler
648280a071 Build: Fix an email address of a contributor
(cherry-picked from ab30934c1d)

Closes gh-2455
2015-09-08 02:42:09 +02:00
Jason Bedard
0874096797 Tests: do not create data cache when fetching single property
(test cherry-picked from f5bf9bc488)
Refs gh-2554
2015-09-08 02:02:51 +02:00
Jason Bedard
bec2ba2312 Data: Don't expose jQuery.acceptData
jQuery.acceptData is an undocumented internal API that shouldn't be exposed.

(cherry-picked from 224271982e)

Fixes gh-2555
2015-09-08 01:32:46 +02:00
Michał Gołębiowski
eac265ccdd Tests: lower the PHP sleep time in unreleasedXHR.html
The AJAX test performed in unreleasedXHR.html was scheduling PHP processes
sleeping for 10 minutes. When a lot of commits are tested in short intervals
this was causing build failures due to the drained php-fpm pool.

The 10 seconds sleep time should be enough for this test.

(cherry-picked from 02e10082b2)

Refs 62acda819f
2015-09-08 00:46:25 +02:00
Michał Gołębiowski
a9930565f1 Serialize: Fix object detection
jQuery.type doesn't just return "null" for null but also e.g. "array"
for arrays instead of object so it's not really a typeof analogue.

My suggestion was stupid. Sorry.

(cherry-picked from 14c0fe4432)

Refs 3d7ce0a65f
2015-09-08 00:33:09 +02:00
Daniel Nill
f0b86ec050 Serialize: Handle arrays with null values
(cherry-picked from 3d7ce0a65f)

Closes gh-2436
2015-09-07 23:00:47 +02:00
Reed Loden
2da0cca7d3 Build: Update grunt-contrib-uglify because of a security issue in uglify
Update grunt-contrib-uglify dependency to v0.9.2 in order to
avoid a security issue fixed in uglify-js v2.4.24.

https://github.com/mishoo/UglifyJS2/issues/751
https://zyan.scripts.mit.edu/blog/backdooring-js/

(cherry-picked from 835e9218be)

Closes gh-2556
2015-09-07 22:22:11 +02:00
Thomas Tortorini
41a04e59df Effects: Remove additional parameters of easings
(cherry-picked from b7a7dea95f)

Fixes gh-2367
Closes gh-2376
2015-09-07 22:15:09 +02:00
Timmy Willison
cbb0be6c41 Build: space between curly and paren is optional
Ref 63a577aa0b
Fixes gh-2399
Close gh-2400
2015-09-07 20:14:59 +03:00
Oleg Gaidarenko
85aed35cb5 Tests: Do not define two modules with the same name
Ref 7aa46e0df8
Fixes gh-2437
2015-09-07 20:14:59 +03:00
Oleg Gaidarenko
4543815eed Tests: Partially use new qunit interface
http://qunitjs.com/upgrade-guide-2.x/

For most of the boring work was used
https://github.com/apsdehal/qunit-migrate package

However, it can't update local qunit helpers, plus in some places
old QUnit.asyncTest signature is still used

Ref b930d14ce6
Fixes gh-2540
2015-09-07 20:14:59 +03:00
Oleg Gaidarenko
c530661629 Ajax: do not quote "throws" option - use dot notation instead
Ref c9cf250daa
Fixes gh-2571
2015-09-07 20:14:59 +03:00
Oleg Gaidarenko
20ddbe4f59 Build: Update jscs and lint files
Ref 10fdad742a
Fixes gh-2056
2015-09-07 20:14:50 +03:00
Oleg Gaidarenko
fa8a5a90e1 Build: correct jscs paths
Ref 99975c44ab
2015-09-07 20:14:28 +03:00
Michał Gołębiowski
04ec688e80 Core: Support non-browser environments
Fixes gh-2133
Fixes gh-2501
Closes gh-2504
Refs gh-1950
Refs gh-1949
Refs gh-2397
Refs gh-1537
Refs gh-2504
Refs 842958e7ae
2015-08-16 22:29:42 +02:00
Michał Gołębiowski
9b04201ff2 Core:CSS: Attach test nodes to documentElement, not body
Attaching test divs to document.documentElement instead of document.body
used to cause issues in jQuery 1.x; jQuery Compat doesn't execute any tests
on document ready, though so it could be aligned with master.

This makes jQuery Compat support tests work correctly even if jQuery is
included & used in head before body even exists - making it similar to
the master behavior.

Fixes gh-2502
2015-08-16 22:28:35 +02:00
Richard Gibson
3923bb8400 Event: Reduce differences from master 2015-08-10 10:30:03 -04:00
Richard Gibson
e4c5f87851 Event: Reduce differences from master 2015-08-10 10:10:29 -04:00
Michał Gołębiowski
12230d39e1 Core: Don't expose jQuery.access
jQuery.access was never documented, there is no need to keep it exposed.

Fixes gh-2513
Closes gh-2524
2015-08-04 18:38:13 +02:00
Michał Gołębiowski
b988c0e45d Build: Add a comment explaining why the es3 option is needed
It might not be obvious to everyone that IE 9 & Android 4.0 are not
ES5-compliant browsers (by a large margin) so it's better to add a support
comment. This requires slight changes in parsing the config file
as it's not a pure JSON anymore. JSHint understands such files without
problems.

(cherry-picked from 669cb16d76)

Closes gh-2520
2015-08-03 18:55:36 +02:00
Oleg Gaidarenko
b8b111e337 Tests: don't use deprecated argument in test declaration
Ref aabe94edb4
2015-07-30 20:48:26 +03:00
Bruno Pérel
6af92cafca Docs: Fix various spelling mistakes
(cherry-picked from 360a478033)

Closes gh-2487
2015-07-30 15:51:44 +02:00
Jason Bedard
624d6a8580 Data: backport cleanData tests from gh-2480
The tests needed a slight change as on compat we're not removing the
value for expando but setting it to undefined.

Refs gh-2480
2015-07-28 14:38:36 +02:00
Michał Gołębiowski
b3eb2a13cd Ajax: Account for Android 2.3 not firing window.onerror on script errors
Android 2.3 doesn't fire the window.onerror handler, just accept the reality
there and skip the test.

(cherry-picked from 6044fb6a73)

Refs gh-1573
Refs gh-1786
Refs jquery/jquery.com#108
Closes gh-2458
2015-07-28 13:24:32 +02:00
Michał Gołębiowski
d176001e6e Event: Update support comments for mouseenter/mouseleave implementation
Custom mouseenter/mouseleave implementation was needed because of:
1. Safari 6 not implementing mouseenter/mouseleave at all.
2. Chrome sending mouseenter too often.

The second issue has been fixed in Chrome but exists now in Safari 7
(it's fixed in Safari 8) so we have to keep it for now, unfortunately.

(cherry-picked from 2792845534)
2015-07-27 22:30:19 +02:00
Michał Gołębiowski
5fce498e42 Core: Adjust comments & tests after dropping Safari 6 support
Support comments that mentioned only Safari < 7 were checked & updated
to account for bugs existing in newer versions as well; Safari 6 support
test results were removed.

(cherry-picked from 93bee4701d)

Refs gh-2482
2015-07-27 22:19:57 +02:00
Thomas Tortorini
15f48047bc Core: .each/.map should accept an undefined/null value
(cherry-picked from bf48c21d22)

Fixes gh-2267
Closes gh-2363
2015-07-27 20:02:54 +02:00
Michał Gołębiowski
9c373c3141 Core: Add a support comment for Safari 8
Related issue: https://bugs.webkit.org/show_bug.cgi?id=137337

Thanks @phistuck!

(cherry-picked from d242753726)

Refs cfe468f29c
2015-07-20 20:25:03 +02:00
Timmy Willison
9162122ba8 Release: properly set the dist remote when it's a real release 2015-07-13 15:03:24 -04:00
Timmy Willison
8565f54257 Build: just tack on +compat to versions that may include labels 2015-07-13 14:45:40 -04:00
Oleg Gaidarenko
3d850edb13 Ajax: Remove jsonp callbacks through "jQuery#removeProp" method
Fixes gh-2323
Closes gh-2464
Ref a2ae215d99
2015-07-13 04:09:31 +03:00
Timmy Willison
1682d36be2 Build: add mailmap entry 2015-07-11 11:41:17 -04:00
Timmy Willison
799332fd7e Build: update AUTHORS.txt 2015-07-08 13:42:33 -04:00
Timmy Willison
fe6afa8268 Effects: fix failing tests in IE8 2015-07-08 13:31:09 -04:00
Michał Gołębiowski
7ee0feaca6 CSS: Add an integration test for issue gh-1764
(cherry-picked from 8887106702)

Refs gh-1764
Refs gh-2401
Closes gh-2425
2015-07-08 12:59:49 +02:00
Michał Gołębiowski
23212b34e6 CSS: Make .css("width") & .css("height") return fractional values
Fixes gh-1724
Closes gh-2454
Refs gh-2439
2015-07-07 18:14:04 +02:00
Timmy Willison
203979d153 Deferred: pass lint in new catch tests 2015-07-06 17:10:26 -04:00
Timmy Willison
ef77f83db8 Deferred: add .catch handler
Fixes gh-2102
2015-07-06 17:08:42 -04:00
Michał Gołębiowski
5895340088 CSS: Improve a comment explaining IE11 fullscreen bug
(cherry-picked from 8e4aac8cb0)
2015-07-01 23:21:21 +02:00
Michał Gołębiowski
29561bca8f Effects: Fix tests
Refs 6b10f9d7e9
Refs gh-2340
2015-06-28 22:42:03 +02:00
Corey Frang
d07774ae06 Tests: Fix merge conflict
Introduced in 6b10f9d7e9 originally.

Had a rebase conflict that I fixed but forgot to ⌘-s. ☹
2015-06-26 20:30:56 -04:00
Corey Frang
1390d0736f Tests: Lower the checks rounding error
The CSS value rounding error was causig failures on FF and IE.
2015-06-26 20:21:32 -04:00
Corey Frang
0ff805772a Effects: Adding unit tests for jQuery.Animation
Closes gh-2340

(cherry picked from commit b3b2d6c3dd)

Conflicts:
	src/effects.js
2015-06-26 20:12:42 -04:00