Commit Graph

5857 Commits

Author SHA1 Message Date
Timmy Willison
689270e9d8 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 87bd130289)
2015-10-26 16:08:59 -04:00
Timmy Willison
5c086c3782 Attributes: do not set properties to false when removing booleans
Fixes gh-1759

(cherry picked from commit 47ccf3daad)

Conflicts:
	src/attributes/attr.js
2015-10-26 16:08:49 -04:00
Richard Gibson
a93d1d7d78 Tests: Post-Summit cleanup
Ref 67d7a2eefe
Ref c752a5030b

(cherry picked from commit f931786018)
2015-10-25 15:33:31 -04:00
Timmy Willison
ada073e9ac Core: make isNumeric limited to strings and numbers
Fixes gh-2662

(cherry picked from commit 15ac848868)
2015-10-25 15:15:59 -04:00
Joelle Fleurantin
cf4092eeea Attributes: fix tabIndex on <img> in IE11
Fixes gh-2647
Closes gh-2664

(cherry picked from commit c752a5030b)

Conflicts:
	src/attributes/prop.js
2015-10-25 15:15:55 -04:00
Timmy Willison
24ab83659e CSS: use isFinite in place of redundant isNumeric
(cherry picked from commit 3689963909)
2015-10-25 15:10:50 -04:00
Timmy Willison
0b6846c6b7 CSS: fix AMD mode for the new showHide module
(cherry picked from commit 32cfc38a9c)

Conflicts:
	src/css/showHide.js
2015-10-25 15:10:48 -04:00
Julian Alexander Murillo
52491ae3f0 Tests: Change quotes according to style guidelines
Close gh-2339

(cherry picked from commit c577928d45)
2015-10-25 15:07:50 -04:00
Dave Methvin
657c2f8180 Event: Fix delegated radio events when arrow keys are used
Fixes gh-2343, gh-2410
Close gh-2617

(cherry picked from commit c82a6685bb)
2015-10-25 15:07:50 -04:00
Thomas Tortorini
f5328b6a44 Attributes: removeClass() -> attr("class", "")
- Classes simpliciation

Close gh-2465

(cherry picked from commit 5db1e05309)

Conflicts:
	src/attributes/classes.js
2015-10-25 15:07:47 -04:00
Dave Methvin
c003cd6bc8 Attributes: Use simpler boolean check vs a function call
Ref gh-2491

(cherry picked from commit 4bf1a09522)
2015-10-25 15:00:51 -04:00
Dave Methvin
f24726daa3 Attributes: Remove undocumented .toggleClass( boolean ) signature
Fixes gh-2491
Close gh-2618

(cherry picked from commit 53f798cf4d)

Conflicts:
	src/attributes/classes.js
2015-10-25 15:00:48 -04:00
Dave Methvin
3842246024 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 67d7a2eefe)

Conflicts:
	Gruntfile.js
	src/css.js
	src/css/showHide.js
	test/unit/css.js
2015-10-25 14:54:55 -04:00
Timmy Willison
bd11778168 Deprecated: fix amd mode for the deprecated module
(cherry picked from commit e271f665dd)
2015-10-25 14:12:53 -04:00
Richard Gibson
06128a9d77 Tests: Keep test iframes around for assertions
Ref 44f8239d3f
Ref gh-2644
Ref gh-2390

(cherry picked from commit 0fb84fa8cc)
2015-10-25 14:12:53 -04:00
Liza Ramo
d846c25dca Core: make isNumeric test work on Symbol
Ref #2645
Closes #2657

(cherry picked from commit 0703fd52ef)
2015-10-25 14:12:53 -04:00
Oleg Gaidarenko
20cd34384d Build: update Sizzle to 2.2.1
Ref #2644 - `selector` module in Edge - Waiting for Sizzle update
Fixes #2390

(cherry picked from commit 44f8239d3f)

Conflicts:
	package.json
2015-10-25 14:12:33 -04:00
Richard Gibson
b5c6fc7ebb Ajax: Don't let onreadystatechange preempt exceptions from xhr.send
Ref 0a6e1c4b19
2015-10-23 12:44:48 -04:00
Richard Gibson
3680689165 Tests: Use standard external domain name
Ref 01c360f963
2015-10-23 11:55:52 -04:00
Richard Gibson
0a6e1c4b19 Ajax: Catch synchronous readystatechange events
Fixes gh-2673
Ref trac-14683
2015-10-23 11:35:11 -04:00
Richard Gibson
c40b12a6bd CSS: Protect against getBoundingClientRect exceptions
Ref 487d5ca913
Ref 6df399073c
2015-10-20 18:20:25 -04:00
Dave Methvin
b94af72bc8 Build: Add "deprecated" to the Testswarm module list
Ref #1740

Yeah.
(cherry picked from commit 1144e754a6)
2015-10-20 12:33:58 -04:00
Michał Gołębiowski
99f41c23fd Tests: Add Safari 9 support tests results
Refs e99a3ac706
2015-10-18 17:31:50 -04:00
Joelle Fleurantin
d047073d2b Offset: allow small differences in offset.top
Fixes gh-2590
(cherry picked from commit 9f9e204bba)
2015-10-18 16:07:29 -04:00
Liza Ramo
d3a2fdce97 Core: add unit test for isPlainObject(Symbol)
Fixes #2645
Closes #2661
(cherry picked from commit 9090d98439)
2015-10-18 16:06:04 -04:00
Richard Gibson
214e1634ab CSS: Correct misrepresentation of "auto" horizontal margins as 0
Fixes gh-2237
Closes gh-2276
2015-10-18 15:35:18 -04:00
Aurelio De Rosa
6e466af010 Tests: Account for array-like objects in jQuery.grep
Cherry-picked from 67b76f5986
Closes gh-2605
2015-10-13 03:48:55 +03:00
Oleg Gaidarenko
8cac6da55d Tests: fix code style issues
Cherry-picked from 625bd303d9
Follow-up for c7cf28681e
2015-10-13 01:23:30 +03:00
Christian Grete
c7cf28681e 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 8a734344f2
Closes gh-2627
2015-10-13 01:18:39 +03:00
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