Commit Graph

375 Commits

Author SHA1 Message Date
Timmy Willison
52e24471c8
Core: expose noConflict in AMD mode
- For compability reasons, we had already added the global
  in AMD mode, but without noConflict. This adds back noConflict
  to AMD (which fixes noConflict mode in the tests).

Fixes gh-2930
2016-08-15 11:54:55 -04:00
Oleg Gaidarenko
522f546d96 Build: More ESLint related changes 2016-07-09 00:49:43 +03:00
Michał Gołębiowski
ad6a94c3f1 Core: Re-throw errors that happened in callbacks wrapped in jQuery ready
Also, expose jQuery.readyException that allows to overwrite the default
ready error handler.

Fixes gh-3174
Closes gh-3210
2016-07-07 10:23:06 +02:00
Oleg Gaidarenko
58c6ca9822 Build: ESLint details
Use eslint pragmas, fix new errors, etc

Closes gh-3148
2016-06-11 10:41:33 +03:00
Dave Methvin
e5ffcb0838 Tests: Refactor testIframe() to make it DRYer and more consistent
Ref gh-3040
Closes gh-3049
2016-04-11 13:32:51 -04:00
Oleg Gaidarenko
ce6c83f710 Core: add test for jQuery.isPlainObject(localStorage)
Ref gh-3045
2016-04-08 13:54:23 +03:00
Richard Gibson
e0d3bfa770 Core: Simplify isPlainObject
Fixes gh-2986
Close gh-2998
2016-04-04 12:02:13 -04:00
Timmy Willison
10fc59007d Core: set the base href of the context in parseHTML
Fixes gh-2965
Close gh-3022
2016-04-04 11:30:27 -04:00
Richard Gibson
0c1f72667d Core: Restore 1.x isPlainObject constructor checks
- Guard isPlainObject against inherited scalar constructors

Fixes gh-2982
Close gh-2985
2016-03-14 11:45:07 -04:00
Oleg Gaidarenko
728ea2f277 Tests: add additional test for jQuery.isPlainObject
Ref 00575d4d8c
Also see discussion in
https://github.com/jquery/jquery/pull/2970#discussion_r54970557
2016-03-12 16:43:02 +03:00
Timmy Willison
00575d4d8c Core: restore enumeration behavior in isPlainObject
Fixes gh-2968
Close gh-2970
2016-03-07 11:12:47 -05:00
Michał Gołębiowski
93a8fa6bfc Core: Deprecate jQuery.parseJSON
Fixes gh-2800
Closes gh-2948
2016-03-02 13:12:35 +01:00
William Robinet
12038c7234 Tests: fix typos
Closes gh-2927
2016-02-17 14:13:45 -05:00
Richard Gibson
2868db0d41 Core: Update isNumeric tests for pre-ES2015 safety
Ref 7103d8ef47
2016-01-24 19:51:06 -05:00
Steve Mao
7103d8ef47 Core: Improve isNumeric logic and test coverage
Also add back accidentally deleted comments about the implementation.

Fixes gh-2780
Ref gh-2663
Ref gh-2781
Closes gh-2827
2016-01-24 19:07:09 -05:00
Timmy Willison
10c1254d15 Docs: remove compat references 2016-01-14 12:22:45 -05:00
Josh Soref
aae44111e2 Docs: Fix various spelling errors
Closes gh-2761
2016-01-13 13:11:11 -05:00
Timmy Willison
88046440da Selector: pass jQuery unit tests with selector-native
- Ignore certain tests that obviously are not supported
- Beefed up the sortOrder, uniqueSort, isXMLDoc, and attr functions

Fixes gh-1742
Fixes gh-2048
Close gh-2703
2015-11-11 10:10:10 -05:00
Timmy Willison
15ac848868 Core: make isNumeric limited to strings and numbers
Fixes gh-2662
2015-10-21 16:22:22 -04:00
Liza Ramo
9090d98439 Core: add unit test for isPlainObject(Symbol)
Fixes #2645
Closes #2661
2015-10-18 15:12:13 -04:00
Liza Ramo
0703fd52ef Core: make isNumeric test work on Symbol
Ref #2645
Closes #2657
2015-10-17 16:50:05 -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
Connor Atherton
9748e436ad Tests: Add .extend test for defined accessor properties
Closes gh-2615
2015-10-12 17:19:20 +03: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
Oleg Gaidarenko
10fdad742a Build: Update jscs and lint files
Fixes gh-2056
2015-09-07 20:03:50 +03:00
Oleg Gaidarenko
b930d14ce6 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

Fixes gh-2540
2015-08-16 09:02:01 +03:00
Oleg Gaidarenko
aabe94edb4 Tests: don't use deprecated argument in test declaration
Closes gh-2507
2015-07-30 20:46:31 +03:00
Thomas Tortorini
bf48c21d22 Core: .each/.map should accept an undefined/null value
Fixes gh-2267
Closes gh-2363
2015-07-27 19:57:34 +02:00
Michał Gołębiowski
1c59b308d2 Build: Acknowledge Android 2.3 is not ES5-compatible
Android 2.3 chokes on unquoted reserved words being used as property names
which was making Deferred tests not run.

Acknowledge the sad fact that Android 2.3 is not ES5-compliant browser
and enable the "es3" option in JSHint config.

Fixes gh-2478
Closes gh-2481
2015-07-20 18:37:26 +02:00
Timmy Willison
578dcee96a Revert "Offset: allow offset setter to throw for disconnected elements"
This reverts commit 0d11c1182f.
2015-06-16 10:54:52 -04:00
Michał Gołębiowski
bb026fc12c 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"
    }

Fixes gh-1693
2015-06-13 23:14:36 +02:00
Timmy Willison
0d11c1182f Offset: allow offset setter to throw for disconnected elements
Fixes gh-2114
2015-05-05 08:53:17 -07:00
Timmy Willison
2862a07af6 Data: do not include digits when camelCasing
Fixes gh-1751
2015-05-03 08:25:19 -04:00
Richard Gibson
225bde37c9 Manipulation: Make an HTML interception point
Fixes gh-1747
Closes gh-2203
2015-04-30 13:15:33 -04:00
Timmy Willison
1541664582 Core: add workaround for iOS JIT error in isArrayLike
Fixes gh-2145
2015-04-29 18:02:45 -04:00
Oleg Gaidarenko
fcb6c4d1d6 Core: simplify "each" stylesheet iteration test
Closes gh-2089
2015-02-15 01:16:27 +03:00
Timo Tijhof
4116914dca Core: Return empty array instead of null for parseHTML("")
Fixes gh-1997
Close gh-1998
2015-01-19 11:38:04 -05:00
Leonardo Braga
534f13025a Core: add support to tag-hyphenated elements
Ref #1987
2015-01-13 07:42:52 +03:00
Dave Methvin
0ea8c32863 Core: Remove deprecated context and selector properties
Fixes gh-1908
Closes gh-2000
2015-01-11 21:11:56 -05:00
Timmy Willison
cfe468f29c Core: re-introduce createHTMLDocument in parseHTML; Safari 8 left out
Close gh-1505
2014-12-10 09:51:30 -05:00
Timmy Willison
b77983173e Core: revert addition of createHTMLDocument. Thanks, Safari 8.
- Safari 8 has issues when the HTML string contains forms.
  Closing tags are not respected.
2014-12-09 18:01:33 -05:00
Timmy Willison
59232825aa Core: remove unnecessary support test for createHTMLDocument 2014-12-09 15:57:12 -05:00
Timmy Willison
6051609df3 Build: fix tests in AMD mode 2014-12-09 15:39:24 -05:00
Frederic Hemberger
58c2460821 Core: use document.implemenation.createHTMLDocument in jQuery.parseHTML
Close gh-1505
2014-12-09 15:19:01 -05:00
Dave Methvin
80022c81ce Core: Throw an error on $("#") rather than returning 0-length collection
Closes gh-1682

Thanks @goob for the issue report!
2014-12-03 14:51:24 -05:00
Oleg Gaidarenko
fbdbb6fd43 Build: Move test to appropriate module 2014-06-16 03:08:46 +04:00
Oleg Gaidarenko
bbdfbb4ee8 Ajax: Always use script injection in globalEval
Fixes #14757
Closes gh-1449
2014-06-16 03:08:46 +04:00