]> source.dussan.org Git - jquery.git/log
jquery.git
8 years agoRevert "Effects: Improve raf logic"
Oleg Gaidarenko [Tue, 22 Dec 2015 15:05:38 +0000 (18:05 +0300)]
Revert "Effects: Improve raf logic"

This reverts commit 9dc29a2b130e6bbcdbcaf8fdc1433a41e6b7a585.

8 years agoRevert "Core: Remove deprecated context and selector properties"
Oleg Gaidarenko [Tue, 22 Dec 2015 15:00:00 +0000 (18:00 +0300)]
Revert "Core: Remove deprecated context and selector properties"

This reverts commit e2ec5da2a7f1b3de1f9dc7e2c01f27cd23714e60.

8 years agoRevert "Core: Throw an error on $("#") rather than returning 0-length collection"
Oleg Gaidarenko [Tue, 22 Dec 2015 14:52:22 +0000 (17:52 +0300)]
Revert "Core: Throw an error on $("#") rather than returning 0-length collection"

This reverts commit 93f95c966355f02b5695f50523f88687eadb4c81.

8 years agoOffset: do not run tests which break without back-incompat change
Oleg Gaidarenko [Tue, 22 Dec 2015 14:46:47 +0000 (17:46 +0300)]
Offset: do not run tests which break without back-incompat change

See 9d1d4c272a58ced36242d90b3f0462c2bbb972a3

8 years agoTests: correct revert artefact
Oleg Gaidarenko [Tue, 22 Dec 2015 14:35:25 +0000 (17:35 +0300)]
Tests: correct revert artefact

8 years agoRevert "Manipulation: make wrapAll funarg execute only once"
Oleg Gaidarenko [Tue, 22 Dec 2015 14:35:23 +0000 (17:35 +0300)]
Revert "Manipulation: make wrapAll funarg execute only once"

This reverts commit 3dcee021603d5c25cd429cb25c2de5046044ca4c.

8 years agoRevert "Traversing: simplify jQuery#contents method"
Oleg Gaidarenko [Tue, 22 Dec 2015 14:29:42 +0000 (17:29 +0300)]
Revert "Traversing: simplify jQuery#contents method"

This reverts commit 7230df15ac612e0e5a08ed7ffc02f6700b2ec898.

8 years agoRevert "CSS: simplify hack of css getter for the computed values"
Oleg Gaidarenko [Tue, 22 Dec 2015 14:27:38 +0000 (17:27 +0300)]
Revert "CSS: simplify hack of css getter for the computed values"

This reverts commit dac716ca65a83bab2449ffa35c43b4b52e26a0c1.

8 years agoRevert "CSS: simplify "defaultDisplay" module"
Oleg Gaidarenko [Tue, 22 Dec 2015 14:26:01 +0000 (17:26 +0300)]
Revert "CSS: simplify "defaultDisplay" module"

This reverts commit d9d8906cfdd05a6163b0a6791f7ab4433951eacd.

8 years agoRevert "Callbacks: Don't abort execution on .lock()"
Oleg Gaidarenko [Tue, 22 Dec 2015 14:20:29 +0000 (17:20 +0300)]
Revert "Callbacks: Don't abort execution on .lock()"

This reverts commit fc7477f4927100f23f83c22b5142a42d1eac8502.

8 years agoRevert "Manipulation: don't auto-insert tbody"
Oleg Gaidarenko [Tue, 22 Dec 2015 14:15:18 +0000 (17:15 +0300)]
Revert "Manipulation: don't auto-insert tbody"

This reverts commit 939e755163c9c9749fdd39ae9e60de7cb41eeb2c.

8 years agoRevert "Ajax: remove deprecated extensions from ajax promise"
Oleg Gaidarenko [Tue, 22 Dec 2015 14:14:52 +0000 (17:14 +0300)]
Revert "Ajax: remove deprecated extensions from ajax promise"

This reverts commit 9368a8cd8ca81902b8359188668973e489fca6db.

8 years agoRevert "Deferred: Backwards-compatible standards interoperability"
Oleg Gaidarenko [Tue, 22 Dec 2015 14:07:04 +0000 (17:07 +0300)]
Revert "Deferred: Backwards-compatible standards interoperability"

This reverts commit 34f25631795e0641cc706012cfe5a88dacdedfec.

8 years agoRevert "Data: do not include digits when camelCasing"
Oleg Gaidarenko [Tue, 22 Dec 2015 13:45:05 +0000 (16:45 +0300)]
Revert "Data: do not include digits when camelCasing"

This reverts commit a254f22d7bb5b072a82087a448130ffadd70d698.

8 years agoCSS: remove revert artefact
Oleg Gaidarenko [Tue, 22 Dec 2015 13:42:00 +0000 (16:42 +0300)]
CSS: remove revert artefact

8 years agoRevert "Data: always camelCase keys in .data()"
Oleg Gaidarenko [Tue, 22 Dec 2015 13:41:49 +0000 (16:41 +0300)]
Revert "Data: always camelCase keys in .data()"

This reverts commit 0204c3089e7beee0306594605cc64d1e050ecd07.

8 years agoRevert "Data: camelCasing should not ignore case"
Oleg Gaidarenko [Tue, 22 Dec 2015 13:24:23 +0000 (16:24 +0300)]
Revert "Data: camelCasing should not ignore case"

This reverts commit cf16f860b05b7bffeb2382a0a55bb85c69b2abb5.

8 years agoRevert "Offset: Fix .offset() to correctly work with ShadowDOM"
Oleg Gaidarenko [Tue, 22 Dec 2015 13:15:52 +0000 (16:15 +0300)]
Revert "Offset: Fix .offset() to correctly work with ShadowDOM"

This reverts commit d4dd548acaf049d8e4dca9e4b879a51f26bb3d27.

8 years agoRevert "Offset: remove ownerDocument check in offset getter"
Oleg Gaidarenko [Tue, 22 Dec 2015 13:07:19 +0000 (16:07 +0300)]
Revert "Offset: remove ownerDocument check in offset getter"

This reverts commit a2386a8250c82e27680d21f7f6fd1eb9a8f7e938.

8 years agoRevert "Offset: allow offset setter to throw for disconnected elements"
Oleg Gaidarenko [Tue, 22 Dec 2015 13:06:04 +0000 (16:06 +0300)]
Revert "Offset: allow offset setter to throw for disconnected elements"

This reverts commit dc49f62f22a90ba95bbd1b659bfdae905adb4dd8.

8 years agoBuild: Temprary disable jscs checks
Oleg Gaidarenko [Tue, 22 Dec 2015 13:01:55 +0000 (16:01 +0300)]
Build: Temprary disable jscs checks

8 years agoRevert "CSS: Ignore the CSS cascade in show()/hide()/etc."
Oleg Gaidarenko [Tue, 22 Dec 2015 13:00:15 +0000 (16:00 +0300)]
Revert "CSS: Ignore the CSS cascade in show()/hide()/etc."

This reverts commit 9df8bd205ab78308c34af70c934c42175e560e86.

8 years agoRevert "Core: remove custom ready event"
Oleg Gaidarenko [Tue, 22 Dec 2015 12:26:56 +0000 (15:26 +0300)]
Revert "Core: remove custom ready event"

This reverts commit b35bea14a9b1ff6b9ba96e0c51e21bfeecfc4c4a.

8 years agoRevert "Event: remove deprecated event aliases"
Oleg Gaidarenko [Tue, 22 Dec 2015 12:19:13 +0000 (15:19 +0300)]
Revert "Event: remove deprecated event aliases"

This reverts commit ef30bdf4f1b361b6f2e99f5b7233b419f95a62f2.

8 years agoRevert "Ajax: Remove remnants of the load event alias handling"
Oleg Gaidarenko [Tue, 22 Dec 2015 12:17:35 +0000 (15:17 +0300)]
Revert "Ajax: Remove remnants of the load event alias handling"

This reverts commit 38bd5feddeca3acdd740300f370450621d4e2731.

8 years agoRevert "Deferred: add .catch handler"
Oleg Gaidarenko [Tue, 22 Dec 2015 12:04:48 +0000 (15:04 +0300)]
Revert "Deferred: add .catch handler"

This reverts commit ef77f83db86b806425203d1e5ecbcc119d7b9c32.

8 years agoRevert "CSS: Make .css("width") & .css("height") return fractional values"
Oleg Gaidarenko [Tue, 22 Dec 2015 12:03:44 +0000 (15:03 +0300)]
Revert "CSS: Make .css("width") & .css("height") return fractional values"

This reverts commit 23212b34e690e857cbc46951dd8c018d181206cb.

8 years agoRevert "Effects: Remove additional parameters of easings"
Oleg Gaidarenko [Tue, 22 Dec 2015 11:32:03 +0000 (14:32 +0300)]
Revert "Effects: Remove additional parameters of easings"

This reverts commit 41a04e59df5beac4ca61b3b5e3a6b078b6aee1ac.

8 years agoRevert "CSS: Make show/hide/toggle methods a module"
Oleg Gaidarenko [Tue, 22 Dec 2015 11:24:15 +0000 (14:24 +0300)]
Revert "CSS: Make show/hide/toggle methods a module"

This reverts commit 3842246024475eafdc8a00a7ac4358d06d76cab2.

8 years agoRevert "Core: make isNumeric limited to strings and numbers"
Oleg Gaidarenko [Tue, 22 Dec 2015 11:17:53 +0000 (14:17 +0300)]
Revert "Core: make isNumeric limited to strings and numbers"

This reverts commit ada073e9acfc9a103b13b9b69d26590e1c834d04.

8 years agoRevert "Attributes: do not set properties to false when removing booleans"
Oleg Gaidarenko [Tue, 22 Dec 2015 11:16:55 +0000 (14:16 +0300)]
Revert "Attributes: do not set properties to false when removing booleans"

This reverts commit 5c086c3782459307c44397549fef15a87c8b90c4.

9 years agoTests: Make regexes for iOS devices more rigid
Michał Gołębiowski [Fri, 30 Oct 2015 18:19:01 +0000 (19:19 +0100)]
Tests: Make regexes for iOS devices more rigid

9 years agoTests: Remove Safari 7.0 & iOS 6 support tests results
Michał Gołębiowski [Fri, 30 Oct 2015 18:18:43 +0000 (19:18 +0100)]
Tests: Remove Safari 7.0 & iOS 6 support tests results

9 years agoTests: Add iOS 9 support tests results
Michał Gołębiowski [Fri, 30 Oct 2015 18:18:20 +0000 (19:18 +0100)]
Tests: Add iOS 9 support tests results

9 years agoBuild: Test on Node 5
Michał Gołębiowski [Fri, 30 Oct 2015 00:34:33 +0000 (01:34 +0100)]
Build: Test on Node 5

(cherry-picked from cbe5b2b79a46c61ad36ea5df44f80b1cc2c1b60a)

9 years agoAttributes: remove flakey test for selected attribute
Timmy Willison [Mon, 26 Oct 2015 15:38:04 +0000 (11:38 -0400)]
Attributes: remove flakey test for selected attribute

- The change is already covered by the "checked" test.
  Since this test is redundant, just drop it.

(cherry picked from commit 87bd130289c6ed9bfc355c1f8587ae6ce00a4776)

9 years agoAttributes: do not set properties to false when removing booleans
Timmy Willison [Sun, 18 Oct 2015 21:21:41 +0000 (17:21 -0400)]
Attributes: do not set properties to false when removing booleans

Fixes gh-1759

(cherry picked from commit 47ccf3daadc4b312f850502300129952e70f9d9d)

Conflicts:
src/attributes/attr.js

9 years agoTests: Post-Summit cleanup
Richard Gibson [Sun, 25 Oct 2015 19:25:56 +0000 (15:25 -0400)]
Tests: Post-Summit cleanup

Ref 67d7a2eefee768b59eb3d51cb1fb2c671873e58a
Ref c752a5030bc00eb5b45dea9c28963f824a5c4f44

(cherry picked from commit f931786018058174fa63551a7a4a3fccf9de41fa)

9 years agoCore: make isNumeric limited to strings and numbers
Timmy Willison [Sun, 18 Oct 2015 19:50:43 +0000 (15:50 -0400)]
Core: make isNumeric limited to strings and numbers

Fixes gh-2662

(cherry picked from commit 15ac848868e993dfe5ccd7751a94f5c8edc288bc)

9 years agoAttributes: fix tabIndex on <img> in IE11
Joelle Fleurantin [Sun, 18 Oct 2015 20:20:25 +0000 (16:20 -0400)]
Attributes: fix tabIndex on <img> in IE11

Fixes gh-2647
Closes gh-2664

(cherry picked from commit c752a5030bc00eb5b45dea9c28963f824a5c4f44)

Conflicts:
src/attributes/prop.js

9 years agoCSS: use isFinite in place of redundant isNumeric
Timmy Willison [Sun, 18 Oct 2015 19:12:35 +0000 (15:12 -0400)]
CSS: use isFinite in place of redundant isNumeric

(cherry picked from commit 3689963909880ed832ac17eabf7b9260927a68d8)

9 years agoCSS: fix AMD mode for the new showHide module
Timmy Willison [Sun, 18 Oct 2015 19:09:59 +0000 (15:09 -0400)]
CSS: fix AMD mode for the new showHide module

(cherry picked from commit 32cfc38a9c76d1f9163759c811cb9c82eb47d565)

Conflicts:
src/css/showHide.js

9 years agoTests: Change quotes according to style guidelines
Julian Alexander Murillo [Thu, 21 May 2015 04:59:06 +0000 (23:59 -0500)]
Tests: Change quotes according to style guidelines

Close gh-2339

(cherry picked from commit c577928d45bdcc3ee8f93da89ab7aadca21919f3)

9 years agoEvent: Fix delegated radio events when arrow keys are used
Dave Methvin [Mon, 28 Sep 2015 02:05:57 +0000 (22:05 -0400)]
Event: Fix delegated radio events when arrow keys are used

Fixes gh-2343, gh-2410
Close gh-2617

(cherry picked from commit c82a6685bb964627e27008e298f93ea81218265b)

9 years agoAttributes: removeClass() -> attr("class", "")
Thomas Tortorini [Sun, 11 Oct 2015 08:22:06 +0000 (10:22 +0200)]
Attributes: removeClass() -> attr("class", "")

- Classes simpliciation

Close gh-2465

(cherry picked from commit 5db1e053098af747330044d5740e5379f2834402)

Conflicts:
src/attributes/classes.js

9 years agoAttributes: Use simpler boolean check vs a function call
Dave Methvin [Wed, 14 Oct 2015 19:07:53 +0000 (15:07 -0400)]
Attributes: Use simpler boolean check vs a function call

Ref gh-2491

(cherry picked from commit 4bf1a09522955eb52de1fafb4ee1ecc5982b7a3e)

9 years agoAttributes: Remove undocumented .toggleClass( boolean ) signature
Dave Methvin [Fri, 25 Sep 2015 21:11:01 +0000 (17:11 -0400)]
Attributes: Remove undocumented .toggleClass( boolean ) signature

Fixes gh-2491
Close gh-2618

(cherry picked from commit 53f798cf4d783bb813b4d1ba97411bc752b275f3)

Conflicts:
src/attributes/classes.js

9 years agoCSS: Make show/hide/toggle methods a module
Dave Methvin [Fri, 9 Oct 2015 19:52:29 +0000 (15:52 -0400)]
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

(cherry picked from commit 67d7a2eefee768b59eb3d51cb1fb2c671873e58a)

Conflicts:
Gruntfile.js
src/css.js
src/css/showHide.js
test/unit/css.js

9 years agoDeprecated: fix amd mode for the deprecated module
Timmy Willison [Sun, 18 Oct 2015 15:02:16 +0000 (11:02 -0400)]
Deprecated: fix amd mode for the deprecated module

(cherry picked from commit e271f665dd8fb617a5015051e1c9df8cebd6c97b)

9 years agoTests: Keep test iframes around for assertions
Richard Gibson [Sat, 17 Oct 2015 21:40:30 +0000 (17:40 -0400)]
Tests: Keep test iframes around for assertions

Ref 44f8239d3f9d09d81e2885e9ae7e044277b67341
Ref gh-2644
Ref gh-2390

(cherry picked from commit 0fb84fa8ccefcd07febf282fd7b80262ad70add7)

9 years agoCore: make isNumeric test work on Symbol
Liza Ramo [Sat, 17 Oct 2015 20:48:57 +0000 (16:48 -0400)]
Core: make isNumeric test work on Symbol

Ref #2645
Closes #2657

(cherry picked from commit 0703fd52ef88a2cdac93502070c51c93ffa1dfdd)

9 years agoBuild: update Sizzle to 2.2.1
Oleg Gaidarenko [Sat, 17 Oct 2015 18:17:20 +0000 (14:17 -0400)]
Build: update Sizzle to 2.2.1

Ref #2644 - `selector` module in Edge - Waiting for Sizzle update
Fixes #2390

(cherry picked from commit 44f8239d3f9d09d81e2885e9ae7e044277b67341)

Conflicts:
package.json

9 years agoAjax: Don't let onreadystatechange preempt exceptions from xhr.send
Richard Gibson [Fri, 23 Oct 2015 16:42:40 +0000 (12:42 -0400)]
Ajax: Don't let onreadystatechange preempt exceptions from xhr.send

Ref 0a6e1c4b191f177fce2dac5fd3a17b76f853fd26

9 years agoTests: Use standard external domain name
Richard Gibson [Fri, 23 Oct 2015 15:55:52 +0000 (11:55 -0400)]
Tests: Use standard external domain name

Ref 01c360f96390ff16edfe65ef3b34e167087ef645

9 years agoAjax: Catch synchronous readystatechange events
Richard Gibson [Fri, 23 Oct 2015 15:35:11 +0000 (11:35 -0400)]
Ajax: Catch synchronous readystatechange events

Fixes gh-2673
Ref trac-14683

9 years agoCSS: Protect against getBoundingClientRect exceptions
Richard Gibson [Tue, 20 Oct 2015 22:20:25 +0000 (18:20 -0400)]
CSS: Protect against getBoundingClientRect exceptions

Ref 487d5ca913c237aafe9efa1179749b46382fddbf
Ref 6df399073c6027608dff84bbd3b71e62df6c1c9b

9 years agoBuild: Add "deprecated" to the Testswarm module list
Dave Methvin [Tue, 20 Oct 2015 16:30:01 +0000 (12:30 -0400)]
Build: Add "deprecated" to the Testswarm module list

Ref #1740

Yeah.
(cherry picked from commit 1144e754a6a131bd4affec26fd85299e71bdab06)

9 years agoTests: Add Safari 9 support tests results
Michał Gołębiowski [Sun, 18 Oct 2015 21:31:50 +0000 (17:31 -0400)]
Tests: Add Safari 9 support tests results

Refs e99a3ac7066226d00ff5828de596d4a4b3818c0c

9 years agoOffset: allow small differences in offset.top
Joelle Fleurantin [Sun, 18 Oct 2015 16:45:41 +0000 (12:45 -0400)]
Offset: allow small differences in offset.top

Fixes gh-2590
(cherry picked from commit 9f9e204bba41b7a9cde5ba7e065d817ef8b18c41)

9 years agoCore: add unit test for isPlainObject(Symbol)
Liza Ramo [Sun, 18 Oct 2015 19:00:38 +0000 (15:00 -0400)]
Core: add unit test for isPlainObject(Symbol)

Fixes #2645
Closes #2661
(cherry picked from commit 9090d98439f8dc449beafee98f8ff35cfb4f9116)

9 years agoCSS: Correct misrepresentation of "auto" horizontal margins as 0
Richard Gibson [Fri, 8 May 2015 03:16:18 +0000 (23:16 -0400)]
CSS: Correct misrepresentation of "auto" horizontal margins as 0

Fixes gh-2237
Closes gh-2276

9 years agoTests: Account for array-like objects in jQuery.grep
Aurelio De Rosa [Sun, 20 Sep 2015 23:05:50 +0000 (00:05 +0100)]
Tests: Account for array-like objects in jQuery.grep

Cherry-picked from 67b76f5986a78d868553b9aec0d0192f5259a078
Closes gh-2605

9 years agoTests: fix code style issues
Oleg Gaidarenko [Mon, 12 Oct 2015 22:22:57 +0000 (01:22 +0300)]
Tests: fix code style issues

Cherry-picked from 625bd303d99408bca86b7002cd42b8716e2b267e
Follow-up for c7cf28681eeb2a7f6d71e5e17b293c252900bda7

9 years agoCore: Support Symbol wrapper objects in jQuery.type
Christian Grete [Fri, 2 Oct 2015 22:28:34 +0000 (00:28 +0200)]
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.

Cherry-picked from 8a734344f2566dab5b8d34ecd79ae81ebd8843c5
Closes gh-2627

9 years agoAjax: don't expect cross-origin tests run in envs which not support it
Oleg Gaidarenko [Mon, 12 Oct 2015 21:00:38 +0000 (00:00 +0300)]
Ajax: don't expect cross-origin tests run in envs which not support it

Cherry-picked from 39cdb8c9aa0fde68f733553ba050a2ba9d86474c
Follow-up to b078a62013782c7424a4a61a240c23c4c0b42614

9 years agoAjax: improve content-type detection
Oleg Gaidarenko [Mon, 12 Oct 2015 16:56:46 +0000 (19:56 +0300)]
Ajax: improve content-type detection

Cherry-picked from 239169bb2ede6ea6287d82d1d13b0c354f451749
Fixes gh-2584
Closes gh-2643

9 years agoAjax: correct indentation
Oleg Gaidarenko [Mon, 12 Oct 2015 17:34:16 +0000 (20:34 +0300)]
Ajax: correct indentation

As noted by @arthurvr

Follow-up for f60729f3903d17917dc351f3ac87794de379b0cc

9 years agoEvent: fix incorrect test
Oleg Gaidarenko [Mon, 12 Oct 2015 15:37:04 +0000 (18:37 +0300)]
Event: fix incorrect test

Which was revealed by 03eaadb131df925d1072afd2496ee3b41d2f1fc6 commit,
also do not try to fix typos in data/jquery version

Cherry-picked from d92310050ca7bf0b33825d64e052f9a8809c3e9e

9 years agoBuild: Fixed issue with base path that contain 'var'
Martin Naumann [Mon, 12 Oct 2015 14:02:25 +0000 (16:02 +0200)]
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 0c34e688439713725d4215c63bc4cf876d8d0423
Fixes gh-2450
Closes gh-2641

9 years agoTests:Docs: Fix various typos
Gary Ye [Fri, 18 Sep 2015 16:59:48 +0000 (09:59 -0700)]
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 03eaadb131df925d1072afd2496ee3b41d2f1fc6
Closes gh-2613
Closes gh-2601

9 years agoEvent: Move .bind() and .delegate() to deprecated
Dave Methvin [Thu, 1 Oct 2015 20:03:10 +0000 (16:03 -0400)]
Event: Move .bind() and .delegate() to deprecated

Cherry-picked from ee0854f85bd686b55757e8854a10480f23c928da
Fixes gh-2288
Closes gh-2624

9 years agoTests: Add .extend test for defined accessor properties
Oleg Gaidarenko [Mon, 12 Oct 2015 14:28:48 +0000 (17:28 +0300)]
Tests: Add .extend test for defined accessor properties

Ref 9748e436ad80d6a2e1661ba4cf8d7391ed87c3ad
Closes gh-2615

9 years agoAjax: Mitigate possible XSS vulnerability
Oleg Gaidarenko [Thu, 10 Sep 2015 10:40:00 +0000 (13:40 +0300)]
Ajax: Mitigate possible XSS vulnerability

Proposed by @jaubourg

Cherry-picked from b078a62013782c7424a4a61a240c23c4c0b42614
Fixes gh-2432
Closes gh-2588

9 years agoDocs: "npm run build" was missing from the contributing guides
Richard Kraaijenhagen [Sun, 20 Sep 2015 12:41:37 +0000 (14:41 +0200)]
Docs: "npm run build" was missing from the contributing guides

Close gh-2537

9 years agoTests: Use QUnit URL parameter parsing
Richard Gibson [Tue, 8 Sep 2015 20:03:10 +0000 (16:03 -0400)]
Tests: Use QUnit URL parameter parsing

(cherry picked from commit f23a64d745759d358d423ba0557e8f74d65f76cc)

9 years agoTests: Add dummy modules when running basic tests
Richard Gibson [Tue, 8 Sep 2015 19:56:08 +0000 (15:56 -0400)]
Tests: Add dummy modules when running basic tests

Without this, other modules don't appear in the QUnit module picker.

Ref 855b0c8c288533948b257925a8906f7da3449eed
Closes gh-2582

(cherry picked from commit f9af896bb8f4cb37b22d508443174c8edf40fc54)

9 years agoManipulation: Don't provide the parser with sloppy table markup
Anthony Ryan [Sat, 25 Jul 2015 06:15:02 +0000 (02:15 -0400)]
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 99e8ff1baa7ae341e94bb89c3e84570c7c3ad9ea)

Reverts 0ea342a6a6dce793c1b0f14f051c2573f40f4e44

Refs gh-2031
Refs gh-2002
Fixes gh-2493
Closes gh-2499

9 years agoEvent: Use form prop so that a propHook can be used
Adrian Olek [Wed, 12 Aug 2015 13:20:11 +0000 (15:20 +0200)]
Event: Use form prop so that a propHook can be used

Fixes gh-2332
Closes gh-2575

9 years agoTests: Account for Edge in originalEvent UA-sniffs
Michał Gołębiowski [Mon, 14 Sep 2015 19:14:23 +0000 (21:14 +0200)]
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 64fd7ef3d081b5c65d541237f73a4d89f0f0ad7b)

Fixes gh-2357

9 years agoTests: Fix the expando-removal test failure in IE 8
Michał Gołębiowski [Mon, 14 Sep 2015 18:22:19 +0000 (20:22 +0200)]
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

9 years agoBuild: Remove a double empty line at the end of .travis.yml
Michał Gołębiowski [Fri, 11 Sep 2015 19:44:54 +0000 (21:44 +0200)]
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 06320c88af5be9cd937917282deb6eb4c4ad0443

(cherry-picked from cea94a83c7a5c5df6da578d417e5fb26152b19e1)

9 years agoBuild: Use double quotes in .travis.yml
Michał Gołębiowski [Fri, 11 Sep 2015 19:35:10 +0000 (21:35 +0200)]
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 06320c88af5be9cd937917282deb6eb4c4ad0443)

9 years agoBuild: Drop io.js testing, test on latest Node.js
Michał Gołębiowski [Tue, 8 Sep 2015 20:38:29 +0000 (22:38 +0200)]
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 250a1990baa571de60325ab2c52eabb399c4cf9e)

9 years agoTests: Provide equal() arguments in correct order (actual, expected)
Richard Gibson [Tue, 8 Sep 2015 20:23:26 +0000 (16:23 -0400)]
Tests: Provide equal() arguments in correct order (actual, expected)

Ref 224271982eb9cd351d7db1b38c740b4e927e6f97
Ref f5bf9bc48897e3b8f050d87d02252c8be456044a

(cherry picked from commit d3d8d9751f3d14a545b26cf820dc1f51896a7b50)

Conflicts:
test/unit/data.js

9 years agoData: test that delete is not used on DOM nodes
Jason Bedard [Tue, 8 Sep 2015 18:30:54 +0000 (20:30 +0200)]
Data: test that delete is not used on DOM nodes

(test cherry-picked from 0e982433eb94391b3e9f6838d9b8fbf9bb31abf9)

Closes gh-2479

9 years agoManipulation: Switch rnoInnerhtml to a version more performant in IE
Sean Henderson [Thu, 3 Sep 2015 15:48:20 +0000 (17:48 +0200)]
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 d4def22e4cd1c2eb2571f449e226b38384fb6d81)

Fixes gh-2563
Closes gh-2574

9 years agoTests: Really fix tests in IE 8 this time
Michał Gołębiowski [Tue, 8 Sep 2015 16:57:39 +0000 (18:57 +0200)]
Tests: Really fix tests in IE 8 this time

IE 8 doesn't have indexOf on arrays. Also, one toLowerCase() was missing. Oops.

9 years agoTests: Make basic tests work in IE 8
Michał Gołębiowski [Tue, 8 Sep 2015 16:43:08 +0000 (18:43 +0200)]
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 5914b103627e3773418ad1fd8c3b034bf3748d51)

9 years agoTests: Don't load non-basic tests when basic module is selected
Michał Gołębiowski [Tue, 8 Sep 2015 16:36:02 +0000 (18:36 +0200)]
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 855b0c8c288533948b257925a8906f7da3449eed)

Refs 2c7e9c934971500a746d012c529e13ec0b560a83

9 years agoTests: Backport basic tests from master
Michał Gołębiowski [Wed, 29 Jul 2015 22:54:00 +0000 (00:54 +0200)]
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 2c7e9c934971500a746d012c529e13ec0b560a83)

Fixes gh-2505
Closes gh-2509
Refs gh-2483

9 years agoBuild: Don't install jsdom 3 on Node.js 0.10 & 0.12 by default
Michał Gołębiowski [Mon, 3 Aug 2015 18:28:37 +0000 (20:28 +0200)]
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 dbb2daa8c3a458e3525d310440f4365548edc138)

Fixes gh-2519
Closes gh-2526

9 years agoTraversing: Don't expose jQuery.dir & jQuery.sibling
Michał Gołębiowski [Mon, 3 Aug 2015 17:45:26 +0000 (19:45 +0200)]
Traversing: Don't expose jQuery.dir & jQuery.sibling

jQuery.dir & jQuery.sibling are undocumented internal APIs; they shouldn't
be exposed.

(cherry-picked from f9ef427d355a8a2b531aed5d112dfa4f9692105c)

Fixes gh-2512
Closes gh-2525

9 years agoTests: more style corrections
Oleg Gaidarenko [Tue, 8 Sep 2015 01:02:51 +0000 (04:02 +0300)]
Tests: more style corrections

Provocated by jscs-dev/node-jscs@2de68c0

Ref c161eecce09fc66ce252d4adf64b565f726bb6d2

9 years agoTests: further improvements QUnit 2.0 migration
Oleg Gaidarenko [Tue, 8 Sep 2015 00:26:29 +0000 (03:26 +0300)]
Tests: further improvements QUnit 2.0 migration

* Remove QUnit jshint globals
* Extend QUnit.assert methods
* Use assert.async instead of start/stop/done

Ref b930d14ce64937e9478405eee2828d4da091d2cb
Ref c8d15a2f9f108e90d3651c31e4abf45415a30fde

9 years agoEffects: Finish should call progress
Thomas Tortorini [Sun, 10 May 2015 23:39:26 +0000 (01:39 +0200)]
Effects: Finish should call progress

(cherry-picked from 3dd3d1357d027a487559516fcdd9064cc792edab)

Fixes gh-2283
Closes gh-2292

9 years agoCore: Remove unnecessary parameter to jQuery#constructor
Yongwoo Jeon [Thu, 2 Jul 2015 06:33:38 +0000 (15:33 +0900)]
Core: Remove unnecessary parameter to jQuery#constructor

(cherry-picked from 98cee73244d55910a1ac82bcf6cae04a7f650484)

Closes gh-2441

9 years agoBuild: Fix an email address of a contributor
Batiste Bieler [Tue, 7 Jul 2015 08:38:44 +0000 (10:38 +0200)]
Build: Fix an email address of a contributor

(cherry-picked from ab30934c1d7e023d9e80525c6e7ad4da31b543af)

Closes gh-2455

9 years agoTests: do not create data cache when fetching single property
Jason Bedard [Sun, 23 Aug 2015 21:23:35 +0000 (14:23 -0700)]
Tests: do not create data cache when fetching single property

(test cherry-picked from f5bf9bc48897e3b8f050d87d02252c8be456044a)
Refs gh-2554

9 years agoData: Don't expose jQuery.acceptData
Jason Bedard [Mon, 7 Sep 2015 23:32:18 +0000 (01:32 +0200)]
Data: Don't expose jQuery.acceptData

jQuery.acceptData is an undocumented internal API that shouldn't be exposed.

(cherry-picked from 224271982eb9cd351d7db1b38c740b4e927e6f97)

Fixes gh-2555

9 years agoTests: lower the PHP sleep time in unreleasedXHR.html
Michał Gołębiowski [Mon, 7 Sep 2015 22:40:52 +0000 (00:40 +0200)]
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 02e10082b25df3b47b6b98e3b35399712795b7df)

Refs 62acda819f9b6fba9263d0b613e15285807b23a7