Commit Graph

5717 Commits

Author SHA1 Message Date
Richard Gibson
5fb689debc Tests: Add dummy modules when running basic tests
Without this, other modules don't appear in the QUnit module picker.

Ref 855b0c8c28
Closes gh-2582

(cherry picked from commit f9af896bb8)
2015-10-08 23:32:05 -04:00
Anthony Ryan
81b6e46522 Manipulation: Don't provide the parser with sloppy table markup
While we can reply on parsers that were designed to cope with
malformed syntax to understand what we mean, we shouldn't
intentionally provide bad markup, not all parsers will accept
it.

"Be conservative in what you do, be liberal in what you accept
from others."

(cherry-picked from 99e8ff1baa)

Reverts 0ea342a6a6

Refs gh-2031
Refs gh-2002
Fixes gh-2493
Closes gh-2499
2015-09-14 22:04:56 +02:00
Adrian Olek
ead83b9c8a Event: Use form prop so that a propHook can be used
Fixes gh-2332
Closes gh-2575
2015-09-14 21:49:45 +02:00
Michał Gołębiowski
4c3e63b47c Tests: Account for Edge in originalEvent UA-sniffs
All other cases where Edge user agent needed to be taken into account
in tests have already been resolved.

(cherry-picked from 64fd7ef3d0)

Fixes gh-2357
2015-09-14 21:14:23 +02:00
Michał Gołębiowski
4b1cff65ce Tests: Fix the expando-removal test failure in IE 8
IE 8 gets the expando removed via removeAttribute so the second assertion
won't be reached. The expected assertion count had to be updated.

Fixes gh-2596
2015-09-14 20:22:19 +02:00
Michał Gołębiowski
fc87a5cd5b Build: Remove a double empty line at the end of .travis.yml
The file already had an empty line at the end, I just can't see.

Refs 06320c88af

(cherry-picked from cea94a83c7)
2015-09-11 21:45:31 +02:00
Michał Gołębiowski
ca0dd7a380 Build: Use double quotes in .travis.yml
.travis.yml used single quotes which is inconsistent with what we use in most
other files. Also, the file was missing an empty line at the end.

(cherry-picked from 06320c88af)
2015-09-11 21:35:59 +02:00
Michał Gołębiowski
d29c394c1f Build: Drop io.js testing, test on latest Node.js
Node.js & io.js have merged, there will be no more major io.js releases.
Also, as of today io.js is officially unsupported (even if it still gets some
updates) while Node.js 4.0.0 (just released!) will be supported until 2018.

(cherry-picked from 250a1990ba)
2015-09-08 22:39:33 +02:00
Richard Gibson
4503a61ff1 Tests: Provide equal() arguments in correct order (actual, expected)
Ref 224271982e
Ref f5bf9bc488

(cherry picked from commit d3d8d9751f)

Conflicts:
	test/unit/data.js
2015-09-08 16:30:17 -04:00
Jason Bedard
5a7674d635 Data: test that delete is not used on DOM nodes
(test cherry-picked from 0e982433eb)

Closes gh-2479
2015-09-08 20:31:06 +02:00
Sean Henderson
29266e00e9 Manipulation: Switch rnoInnerhtml to a version more performant in IE
IE versions greater than 9 do not handle the old regular expression well
with large html content. This is due to the use of a non-capturing group
after a very common html character (<).

Test suite: http://jsfiddle.net/Lwa0t5rp/3/
Microsoft bug: https://connect.microsoft.com/IE/feedback/details/1736512/

(cherry-picked from d4def22e4c)

Fixes gh-2563
Closes gh-2574
2015-09-08 19:35:06 +02:00
Michał Gołębiowski
1b48eef4ca Tests: Really fix tests in IE 8 this time
IE 8 doesn't have indexOf on arrays. Also, one toLowerCase() was missing. Oops.
2015-09-08 18:59:01 +02:00
Michał Gołębiowski
f709a284e2 Tests: Make basic tests work in IE 8
IE 8 prints tag names in upper case which was breaking some tests.

This commit is not necessary on master but has been brought here to keep
tests similar in both branches.

(cherry-picked from 5914b10362)
2015-09-08 18:46:15 +02:00
Michał Gołębiowski
06454d118f Tests: Don't load non-basic tests when basic module is selected
When loading basic tests don't load any others to not overload Android 2.3.
The drawback is that most tests are not selectable in the module dropdown
when the basic module is seelcted.

(cherry-picked from 855b0c8c28)

Refs 2c7e9c9349
2015-09-08 18:45:58 +02:00
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