Commit Graph

5945 Commits

Author SHA1 Message Date
Liza Ramo
9090d98439 Core: add unit test for isPlainObject(Symbol)
Fixes #2645
Closes #2661
2015-10-18 15:12:13 -04:00
Timmy Willison
32cfc38a9c CSS: fix AMD mode for the new showHide module 2015-10-18 15:10:11 -04:00
Joelle Fleurantin
9f9e204bba Offset: allow small differences in offset.top
Fixes gh-2590
2015-10-18 14:01:35 -04:00
Julian Alexander Murillo
c577928d45 Tests: Change quotes according to style guidelines
Close gh-2339
2015-10-18 13:17:23 -04:00
Dave Methvin
c82a6685bb Event: Fix delegated radio events when arrow keys are used
Fixes gh-2343, gh-2410
Close gh-2617
2015-10-18 13:06:37 -04:00
Thomas Tortorini
5db1e05309 Attributes: removeClass() -> attr("class", "")
- Classes simpliciation

Close gh-2465
2015-10-18 12:46:34 -04:00
Dave Methvin
4bf1a09522 Attributes: Use simpler boolean check vs a function call
Ref gh-2491
2015-10-18 12:39:38 -04:00
Dave Methvin
53f798cf4d Attributes: Remove undocumented .toggleClass( boolean ) signature
Fixes gh-2491
Close gh-2618
2015-10-18 12:38:59 -04:00
Dave Methvin
67d7a2eefe CSS: Make show/hide/toggle methods a module
Unit test changes some uses of .show() and .hide() to .css( "display", ... ),
there was already an implicit assumption in several of the existing tests.

Fixes gh-2193
Close gh-2648
2015-10-18 12:30:00 -04:00
Timmy Willison
e271f665dd Deprecated: fix amd mode for the deprecated module 2015-10-18 11:02:16 -04:00
Richard Gibson
0fb84fa8cc Tests: Keep test iframes around for assertions
Ref 44f8239d3f
Ref gh-2644
Ref gh-2390
2015-10-17 17:41:50 -04:00
Liza Ramo
0703fd52ef Core: make isNumeric test work on Symbol
Ref #2645
Closes #2657
2015-10-17 16:50:05 -04:00
Oleg Gaidarenko
44f8239d3f Build: update Sizzle to 2.2.1
Ref #2644 - `selector` module in Edge - Waiting for Sizzle update
Fixes #2390
2015-10-17 14:18:52 -04:00
Aurelio De Rosa
67b76f5986 Tests: Account for array-like objects in jQuery.grep
Closes gh-2605
2015-10-13 03:48:14 +03:00
Oleg Gaidarenko
625bd303d9 Tests: fix code style issues
Follow-up for 8a734344f2
2015-10-13 01:22:57 +03:00
Christian Grete
8a734344f2 Core: Support Symbol wrapper objects in jQuery.type
In ECMAScript 2015 (ES6), the native typeof operator returns "symbol"
for Symbol primitives. As it is possible to wrap symbols using the
Object constructor, symbols can be objects as well as any other
primitive type in JavaScript and should be determined by jQuery.type.

Closes gh-2627
2015-10-13 01:18:20 +03:00
Oleg Gaidarenko
39cdb8c9aa Ajax: don't expect cross-origin tests run in envs which not support it
Follow-up to b078a62013
2015-10-13 00:00:38 +03:00
Oleg Gaidarenko
239169bb2e Ajax: improve content-type detection
Fixes gh-2584
Closes gh-2643
2015-10-12 22:38:15 +03:00
Oleg Gaidarenko
cb087ce41d Ajax: correct indentation
As noted by @arthurvr

Follow-up for b078a62013
2015-10-12 20:35:29 +03:00
Oleg Gaidarenko
d92310050c Event: fix incorrect test
Which was revealed by 03eaadb131 commit,
also do not try to fix typos in data/jquery version
2015-10-12 18:37:04 +03:00
Martin Naumann
0c34e68843 Build: Fixed issue with base path that contain 'var'
Remove the cwd from the paths, so the regex doesn't kick in on "var"

Fixes gh-2450
Closes gh-2641
2015-10-12 18:17:12 +03:00
Gary Ye
03eaadb131 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

Closes gh-2613
Closes gh-2601
2015-10-12 18:08:13 +03:00
Dave Methvin
ee0854f85b Event: Move .bind() and .delegate() to deprecated
Fixes gh-2288
Closes gh-2624
2015-10-12 17:32:08 +03:00
Connor Atherton
9748e436ad Tests: Add .extend test for defined accessor properties
Closes gh-2615
2015-10-12 17:19:20 +03:00
Oleg Gaidarenko
b078a62013 Ajax: Mitigate possible XSS vulnerability
Proposed by @jaubourg

Fixes gh-2432
Closes gh-2588
2015-10-12 17:05:18 +03:00
Richard Kraaijenhagen
735dea34fb Docs: "npm run build" was missing from the contributing guides
Close gh-2537
2015-10-12 09:59:39 -04:00
Richard Gibson
f23a64d745 Tests: Use QUnit URL parameter parsing 2015-10-08 23:29:32 -04:00
Richard Gibson
f9af896bb8 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
2015-10-08 23:26:03 -04:00
Anthony Ryan
99e8ff1baa 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."

Reverts 0ea342a6a6

Refs gh-2031
Refs gh-2002
Fixes gh-2493
Closes gh-2499
2015-09-14 22:01:04 +02:00
Jason Bedard
b5f7c9e2d5 Data: Combine register and cache methods
Closes gh-2553
2015-09-14 21:53:27 +02:00
Michał Gołębiowski
ce3b4a6242 Ajax:Attributes:CSS:Manipulation: Reduce Android 2.3 support
Drop non-critical workarounds for Android 2.3.

Fixes gh-2483
Fixes gh-2505
Closes gh-2581
2015-09-14 21:26:48 +02:00
Michał Gołębiowski
64fd7ef3d0 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.

Fixes gh-2357
2015-09-14 21:13:44 +02:00
Michał Gołębiowski
cea94a83c7 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
2015-09-11 21:44:54 +02:00
Michał Gołębiowski
06320c88af 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.
2015-09-11 21:35:22 +02:00
Michał Gołębiowski
250a1990ba 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.
2015-09-08 22:38:29 +02:00
Richard Gibson
d3d8d9751f Tests: Provide equal() arguments in correct order (actual, expected)
Ref 224271982e
Ref f5bf9bc488
2015-09-08 16:28:44 -04:00
Jason Bedard
0e982433eb Data: avoid using delete on DOM nodes
Closes gh-2479
2015-09-08 20:22:54 +02:00
Sean Henderson
d4def22e4c 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/

Fixes gh-2563
Closes gh-2574
2015-09-08 19:31:57 +02:00
Michał Gołębiowski
1b566d37a2 Tests: Really fix tests in IE 8 this time
IE 8 doesn't have indexOf on arrays. Also, one toLowerCase() was missing. Oops.

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

(cherry-picked from 1b48eef4ca)
2015-09-08 19:02:35 +02:00
Michał Gołębiowski
5914b10362 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.
2015-09-08 18:43:08 +02:00
Michał Gołębiowski
855b0c8c28 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.

Refs 2c7e9c9349
2015-09-08 18:36:42 +02:00
Michał Gołębiowski
2c7e9c9349 Tests: Add simple tests for Android 2.3
Fixes gh-2505
Closes gh-2509
Refs gh-2483
2015-09-08 18:03:49 +02:00
Michał Gołębiowski
dbb2daa8c3 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.

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

Fixes gh-2512
Closes gh-2525
2015-09-08 17:32:07 +02:00
Oleg Gaidarenko
c161eecce0 Tests: more style corrections
Provocated by jscs-dev/node-jscs@2de68c0d83

Closes gh-2578
2015-09-08 04:06:20 +03:00
Oleg Gaidarenko
c8d15a2f9f 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
2015-09-08 04:06:20 +03:00
Thomas Tortorini
3dd3d1357d Effects: Finish should call progress
Fixes gh-2283
Closes gh-2292
2015-09-08 02:40:54 +02:00
Yongwoo Jeon
98cee73244 Core: Remove unnecessary parameter to jQuery#constructor
Closes gh-2441
2015-09-08 02:30:26 +02:00
Batiste Bieler
ab30934c1d Build: Fix an email address of a contributor
Closes gh-2455
2015-09-08 02:26:05 +02:00
Jason Bedard
f5bf9bc488 Data: do not create data cache when fetching single property
Closes gh-2554
2015-09-08 01:55:51 +02:00