Michał Gołębiowski-Owczarek
2d9d6d5b47
Selector: Make selector-native's isXMLDoc recognize HTML-embedded SVG
...
This commit also backports some jQuery.isXMLDoc tests from master so that this
behavior doesn't regress.
(partially cherry-picked from 79b74e043a
)
Closes gh-4438
Ref jquery/sizzle#378
Ref jquery/sizzle#436
2019-07-29 22:06:18 +02:00
Michał Gołębiowski-Owczarek
753d591aea
Core: Prevent Object.prototype pollution for $.extend( true, ... )
...
Closes gh-4333
2019-03-25 17:57:30 +01:00
Michał Gołębiowski-Owczarek
9cb124ed00
Build: Update jsdom; migrate a test with Symbol polyfill to an iframe test
...
So far, we've been testing that jQuery element iteration works with polyfilled
Symbol & transpiled for-of via a Node test with jsdom with the Symbol global
removed. Unfortunately, jsdom now requires Symbol to be present for its internal
functionality so such a test is no longer possible. Instead, it's been migrated
to an iframe test with transpiled JavaScript.
This PR also enables us to use ECMAScript 2017 or newer in Node.js code.
Closes gh-4305
2019-03-04 18:30:51 +01:00
abnud1
c349818742
Build: Update test code for compatibility with QUnit 2.x ( #4297 )
...
Also, run `grunt npmcopy` to sync the "external" directory with dependencies
from package.json. For example, the Sinon library version didn't match.
Ref gh-4234
Closes gh-4297
2019-02-18 19:03:26 +01:00
Jason Bedard
1ea092a54b
Core: deprecate jQuery.type
...
Fixes gh-3605
Close gh-3895
2018-01-16 10:39:08 -05:00
Jason Bedard
c4494d4abc
Core: deprecate jQuery.isNumeric
...
Fixes gh-2960
Closes gh-3888
2018-01-15 20:50:02 -08:00
Jason Bedard
3d732cca6b
Core: deprecate jQuery.isFunction
...
Fixes gh-3609
2018-01-15 09:26:19 -08:00
Timmy Willison
3a8e44745c
Core: deprecate jQuery.proxy (not slated for removal)
...
Fixes gh-2958
Close gh-3885
2018-01-08 11:28:35 -05:00
Timmy Willison
909e0c9925
Core: deprecate jQuery.now
...
Fixes gh-2959
Close gh-3884
2018-01-08 11:24:45 -05:00
Nilton Cesar
64a289286a
Core: make camelCase function available only for internal usage
...
Close gh-3604
Fixes gh-3384
2018-01-08 11:21:22 -05:00
Timo Tijhof
ecd8ddea33
Tests: Add support for running unit tests via grunt with karma
...
- Update QUnit to 1.23.1
- Remove unused dl#dl from test/index.html
- Remove unused map#imgmap from test/index.html
- Ensure all urls to data use baseURI
- Add the 'grunt karma:main' task
- customContextFile & customDebugFile
- Add 'npm run jenkins' script
Close gh-3744
Fixes gh-1999
2017-12-18 12:27:38 -05:00
Shashanka Nataraj
c18d608537
Core: Deprecate jQuery.isWindow
...
Fixes gh-3629
Close gh-3702
2017-07-10 12:00:27 -04:00
Andreas Solleder
5bdd1ca1ab
Tests: minor typos
...
Close gh-3671
2017-06-05 11:46:43 -04:00
Richard Gibson
a16339b893
Core: Update isFunction to handle unusual-@@toStringTag input
...
Ref gh-3597
Fixes gh-3600
Fixes gh-3596
Closes gh-3617
2017-04-24 12:39:25 -04:00
karan-96
ac9e301664
Core: Deprecate jQuery.nodeName
...
Fixes gh-3475
Closes gh-3505
2017-03-01 11:48:11 +01:00
David Broder-Rodgers
bd9145fa15
Tests: Added tests for symbol-separated tag names
...
Fixes gh-2006
Closes gh-3473
2016-12-29 15:02:12 -05:00
Manoj Kumar
1b9575b9d1
Core: Deprecate jQuery.isArray
...
Fixes gh-2961
Closes gh-3278
2016-11-30 12:22:24 +01:00
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