Commit Graph

1915 Commits

Author SHA1 Message Date
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
Corey Frang
6b10f9d7e9 Effects: Add tests for jQuery.Tween
Conflicts:
	src/selector-native.js
	test/index.html
	test/unit/effects.js
2015-06-26 20:11:55 -04:00
Michał Gołębiowski
453738ab85 Core: Change support.ownLast to support.ownFirst
jQuery.support.ownLast was the only support test that was supposed
to be false when it succeeded. It was confusing.

Fixes gh-2406
Closes gh-2408
2015-06-23 00:33:51 +02:00
Timmy Willison
a0a5c0be2d Offset: add tests for hidden elements + scroll
- Also add comments to hidden/disconnected tests noting
  this is to ensure consistency between branches
2015-06-16 13:24:12 -04:00
Timmy Willison
63f19a95b9 Offset: return zeros for disconnected/hidden elements
Fixes gh-2310
Close gh-2396
2015-06-16 10:55:51 -04:00
Timmy Willison
ee69e9c8b8 Revert "Offset: allow offset setter to throw for disconnected elements"
This reverts commit 0d11c1182f.
2015-06-16 10:55:48 -04:00
Michał Gołębiowski
1d052bdbe6 Tests: Remove Edge version from the user agent
The version will change in the future, matching by /edge\//i is enough

(cherry-picked from 5a1217e401)

Refs 8e111df641
2015-06-16 14:45:30 +02:00
Michał Gołębiowski
546593bdd2 Tests: Add Microsoft Edge results (from Windows 10 build 10130)
The Microsoft Edge user agent contains "Chrome" so it needs to be checked
before Chrome.

Refs 8e111df641
2015-06-14 02:09:34 +02:00
Michał Gołębiowski
ef332c7c7b Tests: Correct a typo in the regex matching Safari 8
(cherry-picked from c17543fd3c)
2015-06-14 02:05:05 +02:00
Michał Gołębiowski
2fa3bac7eb Core: Make jQuery objects iterable
Make iterating over jQuery objects possible using ES 2015 for-of:

    for ( node of $( "<div id=narwhal>" ) ) {
        console.log( node.id ); // "narwhal"
    }

(partially cherry-picked from bb026fc12c)

Fixes gh-1693
2015-06-13 23:31:27 +02:00
Michał Gołębiowski
42ea746825 CSS: Don't cache unrecognized CSS property names
This prevents jQuery from caching a prefixed property name if provided
directly by the user, e.g. the following code:

	elem.css( "msTransform", "translate(5px, 2px)" );

should not prevent one from from later setting the transition directly:

	elem.css( "transform", "translate(5px, 2px)" );

on a browser not understanding the unprefixed version which is the case
for Safari 8 & transform.

(cherry-picked from d471842b3e)

Fixes gh-2015
Closes gh-2298
2015-06-01 14:25:14 +02:00
Oleg Gaidarenko
37c3d08782 Event: improve originalEvent hack
Ref 6df669f0fb
Ref gh-2336
2015-05-29 20:33:08 +03:00
Oleg Gaidarenko
ef30bdf4f1 Event: remove deprecated event aliases
(Cherry-picked from 0705be4750)
Fixes gh-2286
Closes gh-2287
Ref trac-11733
2015-05-19 13:47:17 +03:00
Oleg Gaidarenko
57fb2dc02e Attributes: don't test SVG CSS-class manipulation in IE8
Ref 20aaed367f
2015-05-19 13:47:11 +03:00
Oleg Gaidarenko
401a351bd2 Event: provide verbose info for focus(in | out) & rename support props
Ref c074006a69
Ref gh-2312
2015-05-19 13:46:34 +03:00
Michał Gołębiowski
61f812b7e7 Ajax: Use the native XHR for all non-local requests in IE9+
IE throws an error on cross-domain PATCH requests if issued via the ActiveX
interface. This commit switches the logic to use the native XHR in all
non-local requests.

Fixes gh-1684
Closes gh-2183
2015-05-18 22:26:00 +02:00
Richard McDaniel
0654711e0d Offset: account for scroll when calculating position
Fixes gh-1708
Close gh-1714
2015-05-12 10:36:45 -04:00
Timmy Willison
b35bea14a9 Core: remove custom ready event
Fixes gh-2264
Close gh-2265
2015-05-12 10:29:07 -04:00
Timmy Willison
b5b0d72774 Attributes: add SVG class manipulation
- Note: support for SVG is limited in jQuery,
  but this is one area where the cost vs benefit ratio
  was acceptable.

Fixes gh-2199
Close gh-2268
2015-05-12 10:24:42 -04:00
Timmy Willison
cbd51c50b3 Tests: fix tests in accordance with new :visible behavior 2015-05-12 10:06:42 -04:00
Timmy Willison
dd816dbac1 CSS: fix :visible/:hidden selectors for inline element w/ content
- Reverts behavior from 10399dd, which we never released.
  BR and inline elements are considered visible.
- The possibility of dropping .offsetWidth and .offsetHeight
  was debunked by this perf:
  http://jsperf.com/visible-hidden-and-getclientrects

Fixes gh-2227
Close gh-2281
2015-05-12 10:06:42 -04:00
Richard Gibson
9df8bd205a CSS: Ignore the CSS cascade in show()/hide()/etc.
Fixes gh-1767
Fixes gh-2071
Closes gh-2180

(cherry picked from commit 86419b10bf)

Conflicts:
	src/css.js
	src/css/defaultDisplay.js
	src/effects.js
	test/data/testsuite.css
	test/unit/css.js
	test/unit/effects.js
2015-05-11 13:01:13 -04:00
Timmy Willison
b9b5c23fd7 Effects: add tests for jQuery.easing._default in Animation and Tween
Ref gh-2219
2015-05-05 11:26:14 -07:00
Timmy Willison
b7f9e62642 Effects: set default easing using jQuery.easing._default
Fixes gh-2219
Close gh-2218
2015-05-05 10:26:02 -07:00
Timmy Willison
dc49f62f22 Offset: allow offset setter to throw for disconnected elements
Fixes gh-2114
2015-05-05 09:00:41 -07:00
Timmy Willison
a2386a8250 Offset: remove ownerDocument check in offset getter
Fixes gh-2115
2015-05-05 09:00:37 -07:00
Arthur Stolyar
d4dd548aca Offset: Fix .offset() to correctly work with ShadowDOM
Fixes gh-1784
Close gh-2043
2015-05-05 09:00:27 -07:00
Timmy Willison
17ce9edf1e Selector: add test for jQuery.unique() alias 2015-05-05 07:59:26 -07:00
Timmy Willison
d9d930f79e Selector: add jQuery.uniqueSort; deprecate jQuery.unique
Fixes gh-2228
2015-05-04 15:28:44 -07:00
Timmy Willison
cf16f860b0 Data: camelCasing should not ignore case
Fixes gh-2070
2015-05-04 10:49:52 -04:00
Timmy Willison
0204c3089e Data: always camelCase keys in .data()
- This effectively implements our "Embrace HTML5" option
- Related: http://goo.gl/GcQAtn

Fixes gh-2257
2015-05-04 10:41:44 -04:00
Timmy Willison
a254f22d7b Data: do not include digits when camelCasing
Fixes gh-1751
2015-05-04 10:41:43 -04:00
Oleg Gaidarenko
1a067a49d1 Event: remove guard for falsy handler argument of jQuery#on method
(cherry-picked from fac67a9842)

Since we don't have this in off method and its a common perception
that this is a rudiment code

Ref gh-2248
Closes gh-2249
2015-05-03 13:57:55 +03:00
Richard Gibson
fb25bacf9b Manipulation: Make an HTML interception point
Fixes gh-1747
Closes gh-2203

(cherry picked from commit 225bde37c9)

Conflicts:
	src/manipulation.js
	test/unit/manipulation.js
2015-04-30 13:16:28 -04:00
Richard Gibson
4cafb58ba4 Manipulation: Detect sneaky no-content replaceWith input
Fixes gh-2204
Ref 642e9a4557
Closes gh-1752
Closes gh-2206

(cherry picked from commit 4b27ae16a2)

Conflicts:
	src/manipulation.js
	test/unit/manipulation.js
2015-04-30 11:37:01 -04:00
Timmy Willison
1e7a2f3674 Core: add workaround for iOS JIT error in isArrayLike
Fixes gh-2145
2015-04-29 18:03:32 -04:00
Richard Gibson
35295f1c20 Deferred: Always handle progress callbacks before done/fail
Fixes gh-2013
Fixes gh-2010
Closes gh-2210

(cherry picked from commit 002240a6eb)
2015-04-22 15:25:35 -04:00
Timmy Willison
7bce5b0ee1 Attributes: revert returning null for non-existant attributes
Ref https://github.com/jquery/jquery/issues/2118
2015-03-30 15:30:21 -04:00
Dave Methvin
e38138af6a Wrap: Support .unwrap( selector) for selective unwrapping
Fixes gh-1744
Closes gh-2003
(cherry picked from commit 7b09235cee)
2015-03-30 13:39:44 -04:00
Michał Gołębiowski
19c0377fcc Core: Update tested jsdom, drop obsolete workarounds
The latest version supporting Node.js is 3.1.2; some workarounds are not needed
for this version. For example, in jsdom 3.1.2 a document created via
document.implementation.createHTMLDocument( "" ) has a body.

(partially cherry-picked from 95c0a10e15)

Fixes gh-2153
Closes gh-2154
2015-03-25 23:14:23 +01:00
Michał Gołębiowski
cd63e9c622 Offset: Round offset value for the sake of floating errors
IE10+ may return not exactly the offset.top value set in an offset callback
if parent has fractional top offset itself. Checking for being close to the
desired result fixes the test error.

(cherry-picked from 62ae2d0fb7)

Fixes gh-2147
2015-03-23 18:30:05 +01:00
Richard Gibson
34f2563179 Deferred: Backwards-compatible standards interoperability
Fixes gh-1722
Closes gh-1996

(cherry picked from commit 555a50d340)
2015-03-20 02:14:04 -04:00
Richard Gibson
9d255b3e50 Tests: Expand CSS relative adjustment tolerance for IE
Ref 48be675200
Ref 4a8000b51a

(cherry picked from commit e22ef5d901)
2015-03-16 23:53:53 -04:00
Richard Gibson
4a8000b51a Tests: Fix CSS relative adjustment test for round-down browsers
Ref 9b03f6df88
Ref 6fb2cefc60

(cherry picked from commit 48be675200)
2015-03-16 23:07:39 -04:00
Timmy Willison
a403655491 Attributes: revert returning null for non-elements 2015-03-16 14:12:00 -04:00
Timmy Willison
17bd6e9cf9 Attributes: fix failing test for new return value 2015-03-16 11:54:43 -04:00
Winston Howes
afca031826 Attributes: return null when attribute does not exist
Fixes gh-2118
Close gh-2129

Conflicts:
	test/unit/attributes.js
2015-03-16 11:54:33 -04:00
Mr21
6fb2cefc60 CSS: Support relative adjustment in any applicable unit
Fixes gh-1711
Closes gh-2011

(cherry picked from commit 9b03f6df88)

Conflicts:
	src/css.js
	src/effects.js
2015-03-09 13:31:11 -04:00
Oleg Gaidarenko
9368a8cd8c Ajax: remove deprecated extensions from ajax promise
(cherry-picked from 9d1b989f20)
Fixes gh-2084
Closes gh-2092
2015-02-17 09:59:22 +03:00
Oleg Gaidarenko
98c77c1199 Build: fix broken assertions caused by QUnit update
QUnit update broke couple traversing and manipulation tests, since new qunit
added another form to the test-suite while some of
jQuery selectors weren't specific

(cherry-picked from 8b6aeae52d)
Ref db31206d36
2015-02-15 02:24:13 +03:00