Commit Graph

5728 Commits

Author SHA1 Message Date
Oleg Gaidarenko
905ab09afc Ajax: don't expect cross-origin tests run in envs which not support it
Cherry-picked from 39cdb8c9aa
Follow-up to b078a62013
2015-10-13 00:02:17 +03:00
Oleg Gaidarenko
3ced5abe5c Ajax: improve content-type detection
Cherry-picked from 239169bb2e
Fixes gh-2584
Closes gh-2643
2015-10-12 22:38:59 +03:00
Oleg Gaidarenko
2a8341787a Ajax: correct indentation
As noted by @arthurvr

Follow-up for f60729f390
2015-10-12 20:34:16 +03:00
Oleg Gaidarenko
e73a67f2e2 Event: fix incorrect test
Which was revealed by 03eaadb131 commit,
also do not try to fix typos in data/jquery version

Cherry-picked from d92310050c
2015-10-12 18:38:41 +03:00
Martin Naumann
4e3f971866 Build: Fixed issue with base path that contain 'var'
Remove the cwd from the paths, so the regex doesn't kick in on "var"

Cherry-picked from 0c34e68843
Fixes gh-2450
Closes gh-2641
2015-10-12 18:18:44 +03:00
Gary Ye
ef6cd83ab0 Tests:Docs: Fix various typos
* Changes "baar" to "bar" when used with "foo" in readme
  and comments of js files

* mousenter -> mouseenter

Thanks @garysye, @KimTaehee

Cherry-picked from 03eaadb131
Closes gh-2613
Closes gh-2601
2015-10-12 18:09:37 +03:00
Dave Methvin
7e78c2ec81 Event: Move .bind() and .delegate() to deprecated
Cherry-picked from ee0854f85b
Fixes gh-2288
Closes gh-2624
2015-10-12 17:34:20 +03:00
Oleg Gaidarenko
15f79201c4 Tests: Add .extend test for defined accessor properties
Ref 9748e436ad
Closes gh-2615
2015-10-12 17:28:48 +03:00
Oleg Gaidarenko
f60729f390 Ajax: Mitigate possible XSS vulnerability
Proposed by @jaubourg

Cherry-picked from b078a62013
Fixes gh-2432
Closes gh-2588
2015-10-12 17:05:49 +03:00
Richard Kraaijenhagen
5da5035039 Docs: "npm run build" was missing from the contributing guides
Close gh-2537
2015-10-12 10:00:37 -04:00
Richard Gibson
fb98ea49b6 Tests: Use QUnit URL parameter parsing
(cherry picked from commit f23a64d745)
2015-10-08 23:32:05 -04:00
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