Commit Graph

343 Commits

Author SHA1 Message Date
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
15f79201c4 Tests: Add .extend test for defined accessor properties
Ref 9748e436ad
Closes gh-2615
2015-10-12 17:28:48 +03:00
Oleg Gaidarenko
d8b7e7b0bd Tests: more style corrections
Provocated by jscs-dev/node-jscs@2de68c0

Ref c161eecce0
2015-09-08 04:26:33 +03:00
Oleg Gaidarenko
2f0cedc997 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
Ref c8d15a2f9f
2015-09-08 04:15:54 +03:00
Oleg Gaidarenko
4543815eed 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

Ref b930d14ce6
Fixes gh-2540
2015-09-07 20:14:59 +03:00
Oleg Gaidarenko
20ddbe4f59 Build: Update jscs and lint files
Ref 10fdad742a
Fixes gh-2056
2015-09-07 20:14:50 +03:00
Oleg Gaidarenko
b8b111e337 Tests: don't use deprecated argument in test declaration
Ref aabe94edb4
2015-07-30 20:48:26 +03:00
Thomas Tortorini
15f48047bc Core: .each/.map should accept an undefined/null value
(cherry-picked from bf48c21d22)

Fixes gh-2267
Closes gh-2363
2015-07-27 20:02:54 +02: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
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
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
a254f22d7b Data: do not include digits when camelCasing
Fixes gh-1751
2015-05-04 10:41:43 -04: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
Timmy Willison
1e7a2f3674 Core: add workaround for iOS JIT error in isArrayLike
Fixes gh-2145
2015-04-29 18:03:32 -04:00
Oleg Gaidarenko
889bb1e3ee Core: simplify "each" stylesheet iteration test
(cherry-picked from fcb6c4d1d6)
Closes gh-2089
2015-02-15 01:16:52 +03:00
Timo Tijhof
61bb61279c Core: Return empty array instead of null for parseHTML("")
Fixes gh-1997
Close gh-1998

Conflicts:
	test/unit/core.js
2015-01-19 11:41:32 -05:00
Leonardo Braga
f19595cef4 Core: add support to tag-hyphenated elements
Ref #1987
Ref 534f13025a
2015-01-13 07:48:33 +03:00
Dave Methvin
e2ec5da2a7 Core: Remove deprecated context and selector properties
Fixes gh-1908
Closes gh-2000
(cherry picked from commit 0ea8c32863)
2015-01-11 21:14:22 -05:00
Timmy Willison
57652eecd9 Build: fix tests in AMD mode 2014-12-10 10:18:59 -05:00
Timmy Willison
828a718aa0 Core: introduce createHTMLDocument in parseHTML; Safari 8/IE8 left out
Close gh-1506
2014-12-10 10:08:04 -05:00
Dave Methvin
93f95c9663 Core: Throw an error on $("#") rather than returning 0-length collection
Closes gh-1682

Thanks @goob for the issue report!
(cherry picked from commit 80022c81ce)
2014-12-03 14:55:33 -05:00
Oleg Gaidarenko
9953ae4c88 Build: Move test to appropriate module
Ref fbdbb6fd43
2014-06-16 03:21:58 +04:00
Oleg Gaidarenko
37f0f7f42c Ajax: Always use script injection in globalEval
Fixes #14757
Ref bbdfbb4ee8
2014-06-16 03:21:39 +04:00
Richard Gibson
d05f4bda1c Tests: Clean up isNumeric tests 2014-06-07 14:33:36 -04:00
Richard Gibson
b6e99eb43c Core: Work around loss of precision from parseFloat
Fixes #15100
2014-06-07 14:22:49 -04:00
Michał Gołębiowski
6738117383 Core: Correct the number of expected tests
(cherry-picked from da148f158f)
2014-05-02 16:04:46 +02:00
Liang Peng
7cf9ceaebc Core: Remove repeated test
(cherry-picked from 69d4a48ff6)

Closes gh-1570
2014-05-02 15:50:31 +02:00
Michał Gołębiowski
835d64e81a Core: Blacklist the ready test on async-loaded jQuery in iOS7
(cherry-picked from 551578eb36)

Fixes #14882
2014-03-17 18:13:49 +01:00
Michał Gołębiowski
725cdebd39 Core: Add test for jQuery.ready.promise fallback load
Fix #13655
Close gh-1209
Ref 32b066d380
2014-03-13 02:18:29 +01:00
Dave Methvin
80e3dfa6ba Core: Do not run window.onready when ready
Fixes #14802
(cherry picked from commit 2df1aad6a1)
2014-03-04 21:50:43 -05:00
Dave Methvin
c93b174b92 Core: Arrays like [42] should fail .isNumeric()
Fixes #14179
(cherry picked from commit 10efa1f5b4)
2014-03-04 21:50:39 -05:00
Michał Gołębiowski
345a598653 Build: Upgrade QUnit to 1.14.0
(cherry-picked from 95b21c6ec2)
2014-02-05 15:47:20 +01:00
cjqed
305eefe6ab Tests: Avoid use of QUnit.reset() in tests by splitting them
Closes gh-1470
Ref #1457
2014-01-03 08:01:46 +04:00
Michał Gołębiowski
62cebacdcb Add es3: true to test/.jshintrc. Make tests conform to that jsHint setting. 2013-11-15 12:54:40 +01:00
Richard Gibson
60a6178131 Fix #14492: More correct jQuery.parseJSON. Close gh-1419. 2013-11-12 00:07:28 -05:00
Michał Gołębiowski
b349731e57 No ticket. Restore some parsing tests in core. (cherry-picked from 650f325d8e) 2013-11-10 21:15:07 +01:00
Richard Gibson
126d596b56 Fix #14074: element id="nodeName". Close gh-1389. 2013-11-07 11:37:52 -05:00
Amey Sakhadeo
b61a64224b Add unit tests for jQuery.grep. Close gh-1345. 2013-09-12 11:23:21 -05:00
Richard Gibson
6a6604b785 No ticket: Hide the testing-support jQuery from tests
(cherry picked from commit 0c18520923)

Conflicts:

	test/data/testrunner.js
2013-09-03 11:13:20 -04:00
Amey Sakhadeo
ceb5b4c9a3 Ref #14313: Optimize 1.x jQuery.merge for size.
(cherry picked from commits c75c9a8ebb f66d53c856)
2013-09-03 02:02:45 -04:00
Timmy Willison
217cbb7109 AMD-ify jQuery sourcegit s! Woo! Fixes #14113, #14163.
Conflicts:
	Gruntfile.js
	README.md
	src/ajax.js
	src/ajax/xhr.js
	src/attributes.js
	src/core.js
	src/css.js
	src/data.js
	src/effects.js
	src/event.js
	src/manipulation.js
	src/offset.js
	src/selector-native.js
	src/traversing.js
	test/unit/core.js
	test/unit/data.js
2013-08-15 15:49:49 -04:00
Dave Methvin
00eafdf028 Fix #13223. Re-allow leading space in HTML. Close gh-1264. 2013-05-09 14:07:19 -04:00
Michał Gołębiowski
0db70aa1fa Fix #13741. Make wrap/unwrap methods optional; close gh-1236.
move size() test to unit/deprecated;
don't use size() in other tests;
make 2 unit tests actually fire;
code cleanup
2013-04-17 23:06:33 -04:00
Timmy Willison
d2435ead36 Update jshintrc to conform to new style guide. Conform to onevar and unused in tests. Fixes #13755.
Conflicts:
	src/.jshintrc
	src/data.js
	test/unit/attributes.js
	test/unit/core.js
	test/unit/data.js
	test/unit/event.js
	test/unit/manipulation.js
	test/unit/queue.js
	test/unit/traversing.js
	test/unit/wrap.js
2013-04-09 12:21:54 -04:00
Brandon Johnson
58b8535d5d Fix #12199. Handle iteration over inherited properties in oldIE. Close
gh-1196.
2013-04-04 10:14:05 -04:00
dmitrygusev
a13cadadf6 Fix typos. Close gh-1186. 2013-02-28 15:55:55 -05:00
Richard Gibson
1f76536650 No ticket: Revise unit tests in anticipation of Sizzle-free builds
(cherry picked from commit 59f5adb622)
2013-02-22 20:33:00 -05:00
Dave Methvin
24e7624554 Fix #12656. Make event shorthands excludable. 2013-01-27 00:35:42 -05:00
Richard Gibson
ac93559eb9 Fix #13274: Wrap sourceMap directive in multiline comments. Close gh-1143. 2013-01-25 10:03:53 -05:00