Commit Graph

2002 Commits

Author SHA1 Message Date
Dave Methvin
b7da3b0043 Fix #13993. Save result of native inline handlers. Close gh-1368.
(cherry picked from commit 3bcd04f528)
2013-10-06 17:58:28 -04:00
Oleg
908d88cc70 Add setup function for the event module
(cherry picked from the commit 2c0b9027de)
2013-09-30 21:17:10 +04:00
Oleg
b2f27632eb Focus on the body before running focus test 2013-09-30 20:23:21 +04:00
Oleg
c809736db2 Try to fix focus test again 2013-09-30 19:20:08 +04:00
Oleg
0b9a182ecd Run focus test only if document has focus 2013-09-23 20:50:31 +04:00
Richard Gibson
3d6ed4483e No ticket: Fix IE focus test failures 2013-09-23 12:00:57 -04:00
Oleg
94a9a4f1c2 Correct test assertion of #10227 ticket for IE8 2013-09-17 18:21:26 +04:00
Richard Gibson
d16fe84d80 No ticket: Improve line-height animation test stability 2013-09-17 09:55:53 -04:00
Oleg
ff156d77b2 Fix memory leaks in tests for css module 2013-09-17 17:53:26 +04:00
Oleg
fd2964237f Fix #12723 and simplification and optmization of defaultDisplay helper
(cherry picked from commit a25343001e)
2013-09-17 16:16:47 +04:00
Oleg
303e41d996 Simplify replaceWith method. Closes gh-1276
(cherry picked from commit 642e9a4557)
2013-09-17 14:21:34 +04:00
Timmy Willison
53aa2e0c8b Use charAt instead of string indexing for oldIE's sake. Fixes #14356. 2013-09-12 15:49:53 -05:00
Timmy Willison
c6b4230d5c Adjust prefilter test to error on string indexing in oldIE 2013-09-12 15:49:53 -05:00
Amey Sakhadeo
b61a64224b Add unit tests for jQuery.grep. Close gh-1345. 2013-09-12 11:23:21 -05:00
Timmy Willison
1a9f8d9bb1 Fix more support tests (support.input should only be false in IE8 and checkClone as it is now used is fine in IE) 2013-09-11 17:23:17 -05:00
Timmy Willison
d092a88e85 Set the input type for firefox. Fix a support test. 2013-09-11 15:35:50 -05:00
Michał Gołębiowski
baa8dff023 Restore support for Firefox < 23, Chrome < 28 and Safari 5.1. 2013-09-11 03:36:18 +02:00
Timmy Willison
5fbf4a4fe3 Map Sizzle to a path with config to allow users to put Sizzle wherever they want 2013-09-10 18:48:53 -05:00
Timmy Willison
812319093a Ensure display: inline-block when animating width/height on inline elements. Fixes #14344. 2013-09-10 15:09:58 -05:00
Michał Gołębiowski
ac0e7a1ba7 No ticket. Restore support for Safari 5.1 in test/unit/support.js for now. (cherry-picked from badcd1b6f3) 2013-09-07 02:31:04 +02:00
Timmy Willison
be1e4eee60 Convert testrunner to an AMD module and ensure jQuery is on the page when executing the testrunner (another race condition amplified by swarm)
Conflicts:
	test/data/testinit.js
	test/data/testrunner.js
2013-09-06 17:23:45 -04:00
Timmy Willison
d14904d083 Move test loader to testinit.js. Fix race condition with dependency loading. 2013-09-06 17:23:45 -04:00
Timmy Willison
b99972de58 Use requirejs to load the testswarm inject script 2013-09-06 17:23:45 -04:00
Michał Gołębiowski
badcd1b6f3 Fix #10814. Fix #14084. Make support tests lazy and broken out to components. 2013-09-06 03:40:49 +02: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
Richard Gibson
5cd6868365 Fix #14318: Cherry-pick interrupted animation fix from master ea5c22ec12 2013-08-30 12:38:43 -04:00
Timmy Willison
8e6e239256 Pass all tests (and load Sizzle fixture correctly) when loading with AMD
Conflicts:
	src/css.js
2013-08-29 16:25:44 -04:00
Timmy Willison
05d907d1b1 Fix for custom attr handles duck-punching the boolean attr handle 2013-08-28 12:12:37 -04:00
Timmy Willison
9f433d9fec Use window.QUnit to detect the top window when loading with AMD 2013-08-27 00:31:14 -04:00
Richard Gibson
2b6a7b1caf No ticket: improve line-height animation test robustness 2013-08-26 16:36:55 -04:00
Michał Gołębiowski
0f03378bdc No ticket. Correct a support comment for the order test. (cherry-picked from 2ac1cd91db) 2013-08-20 15:54:27 +02:00
Oleg
ef5693f7be Correct QUnit check, this might fix swarm failures
Conflicts:
	test/jquery.js
2013-08-19 15:39:37 -04:00
Timmy Willison
04f12635c0 Fix tests for testswarm 2013-08-19 15:01:41 -04:00
Michał Gołębiowski
f5f36dbd89 No ticket. Correct a support comment. (cherry-picked from f92a446ee8) 2013-08-19 20:16:46 +02:00
Michał Gołębiowski
78a80c37a7 Remove redundant prefixes from the CSS order test. (cherry-picked from e3584179fe) 2013-08-19 19:54:07 +02:00
Daniel Herman
bc2b13915c No ticket: add assertions for jQuery.when( array ). Close gh-1312. (cherry-picked from 584a4af9c8) 2013-08-19 18:26:57 +02:00
Oleg Gaidarenko
49670c5f48 Don't execute DOM ready tests in AMD mode (they aren't loaded before DOM ready). Close gh-1335. 2013-08-16 14:36:08 -04:00
Oleg Gaidarenko
723ced4079 Fixed pulling in Sizzle subproject when testing with min/dev. 2013-08-16 09:40:28 -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
Oleg
032ef3525c Correct typos in the test assertion 2013-08-10 10:57:00 +04:00
Oleg
4b74fe1a6e Fix test of #13855 for Opera 12.1 and IE10 2013-08-10 08:00:09 +04:00
Oleg
ae630c40ba Correct assertion for #14049 ticket. Close gh-1327 2013-08-10 07:11:24 +04:00
Oleg
34cc465792 Improve test stability for #13855 ticket. Close gh-1328. 2013-08-08 09:45:28 -04:00
Oleg
1e9d43c0be Support tests
* Check all the properties in jQuery.support
* Fix value of "pixelPosition" in new Chrome
2013-08-08 01:18:26 +04:00
Oleg
353fe2a749 Fix paths for qunit files
(cherry picked from commit c8c32f1d05)
2013-07-24 18:45:06 +04:00
Michał Gołębiowski
4b7a0d4e0a Update devDependencies, adjust .jshintrc to jsHint 2.x, use .jshintignore. Close gh-1283.
Conflicts:
	src/.jshintrc
	test/.jshintrc
2013-07-11 12:59:44 -04:00
Timmy Willison
40d4881373 Include Sizzle and Qunit with bower. Fixes #14118. 2013-07-10 12:01:20 -04:00
Oleg
48a948f4c0 Fix test for #13937 ticket. Close gh-1299
(cherry picked from commit 308980ee2a)
2013-07-01 22:42:25 +04:00
Jason Merino
1c6641f0c8 Fixes #14049: don't append px to CSS order value. Close gh-1300. (cherry picked from ec6eb38c64) 2013-07-01 20:03:16 +02:00
Richard Gibson
ae9e05e9f3 Fix #13937: Correctly scope .finish() following multi-element .animate(). Thanks @gnarf37. Close gh-1279. 2013-05-28 16:48:55 -04:00
Richard Gibson
00231d5d94 Fix #13939: Same-unit relative animations 2013-05-26 19:52:28 -04:00
Julian Aubourg
53095883ef Handles HEAD requests as if they always were 204. Fixes #13922. 2013-05-23 02:39:20 +02:00
Richard Gibson
a7f42d9966 Fix #13835: classes separated by form feed
(cherry picked from commit d8a35011ec)
2013-05-13 21:55:18 -04:00
Richard Gibson
42c25656d1 Fix #13855: line-height animations. Close gh-1265.
(cherry picked from commit 3971c2ebb2)
2013-05-13 20:33:28 -04:00
Renato Oliveira dos Santos
e0f59600a4 Ref #13483: Cherry-pick tests from master ea5c22ec12 2013-05-13 19:13:14 -04:00
Dave Methvin
00eafdf028 Fix #13223. Re-allow leading space in HTML. Close gh-1264. 2013-05-09 14:07:19 -04:00
Richard Gibson
7c72f69ed0 Fix #13846: .prev sort direction
(cherry picked from commit 9c4a428528)
2013-05-01 11:36:48 -04:00
Richard Gibson
6a816ec95f Fix #13819: .parent sort direction 2013-04-24 11:38:23 -04:00
Richard Gibson
d605322c10 Fix #13810: .replaceWith(nextSibling)
(cherry picked from commit d8f7e83712)
2013-04-22 21:10:06 -04:00
Richard Gibson
4f786ba4d2 Fix #13797: .is with single-node context 2013-04-20 11:49:44 -04:00
Michał Gołębiowski
35784a8244 Fix #13743. Remove deprecated support.boxModel. Close gh-1231.
add myself to AUTHORS.txt
2013-04-17 23:21:39 -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
Richard Gibson
12a1017290 Followup #13779: Backwards-compatible unit test 2013-04-17 12:25:24 -04:00
Richard Gibson
0100becc91 Fix #12838: hook point for non-jQuery.ajax synchronous script fetch/execute in domManip. Close gh-1051.
(cherry picked from commit 03db1ada2c)
2013-04-17 12:01:03 -04:00
Rick Waldron
e572eed269 Fixes #13779. Remove nodes in document order
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
2013-04-16 22:26:22 -04:00
Richard Gibson
bdc4f3ebbe Fix #13596; #13722: .replaceWith consistency. Close gh-1216. 2013-04-16 17:28:35 -04:00
Michał Gołębiowski
0c927172b8 Further spacing & code style corrections. 2013-04-15 19:34:45 +02:00
Michał Gołębiowski
a19c831b38 Correct spacing 2013-04-15 19:13:08 +02: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
Dave Methvin
fdaf2146ad Fix #13393. Avoid IE9 activeElement of death.
(Cherry picked from 85fc5878b3)

Conflicts:
	src/event.js
2013-04-08 21:52:16 -04:00
Oleg Gaidarenko
08e57b1de7 Adjust the return value of the tabIndex propHook to match the spec. Fixes #13752. 2013-04-08 21:41:08 -04:00
Richard Gibson
14b09ef98e Ref #12652: Allow overriding native .click() suppression 2013-04-08 13:19:03 -04:00
Michał Gołębiowski
8594decfcc Ref #13554: Move redundant methods to event-alias.js. Close gh-1225.
(cherry picked from commits 8ca9f931ec 84a94acae1 100d3c3516)
2013-04-07 00:48:58 -04:00
Dave Methvin
f7a378e6b7 Fix #13721. Filter before .remove() loop so positionals work. Close gh-1221.
(Cherry picked from 1b61026650)
2013-04-06 16:47:03 -04:00
Richard Gibson
4ef516903e Fix #13539: Utilize Sizzle hooks. Close gh-1215. 2013-04-04 23:04:05 -04:00
Richard Gibson
f8b27f16ba Ref 65a66489: oldIE handholding for native event tests 2013-04-04 19:26:08 -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
Michał Gołębiowski
df7847bc25 Fix #13543. offsetWidth is wrong on non-1 zoom. Close gh-1218. 2013-04-03 22:08:46 -04:00
Dave Methvin
01fcdba208 Remove doesNotIncludeMarginInBodyOffset from support checks. 2013-04-03 21:44:40 -04:00
Michał Gołębiowski
4adde5d145 Update grunt-contrib-jshint to 0.3.0, ref gh-1204. 2013-04-03 20:41:41 -04:00
Richard Gibson
65a6648932 Ref #13353: capture onlyHandlers in jQuery.Event.isTrigger. Close gh-1183. 2013-04-03 20:25:50 -04:00
jrburke
b6dd1c67a6 Remove the define.amd.jQuery check, close gh-1150.
Cherry picked from 2.0 master 34c4e122a3

Conflicts:
	src/exports.js
2013-04-03 20:10:42 -04:00
ruado1987
48d71d0c3e Fix #13514: Set selectedIndex to -1 when non-matching value is set on a select. Close gh-1191. 2013-03-22 12:46:13 -04:00
dmitrygusev
a13cadadf6 Fix typos. Close gh-1186. 2013-02-28 15:55:55 -05:00
jaubourg
69b3d5ce0f Fixes #11151, #13388. Minor refactor of response conversion and when/where
responseXXX fields are set on the jqXHR. Close gh-1164.
2013-02-28 14:47:39 -05:00
jaubourg
a14a31727f Properly resets firingLength when emptying the list. Fixes #13517 2013-02-27 16:12:16 +01:00
Dave Methvin
f5163914fa Fix #13471. $().on(".xyz"...) should avoid later crash.
If the event type is an empty string we end up hanging in .off() which makes for
mighty hard debugging. Instead treat it as a no-op. Docs seem clear this is not
allowed.
2013-02-26 12:24:56 -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
Richard Gibson
5e29ff7e59 Fix #13265 #13332: Allow .parent/.closest with text nodes. Close gh-1146. 2013-02-13 21:22:53 -05:00
Mark Raddatz
03ab9b9f90 Fix #13401: replaceWith(""). Close gh-1163.
(cherry picked from commit 6a0ee2d9ed)
2013-02-08 09:54:07 -05:00
Richard Gibson
67a2e4eaac Ref #13316: Sync all test documents on full vs. minified source. 2013-02-08 00:20:33 -05:00
Oleg
8226666b13 Fix #13310. Get the right display value for disconnected nodes. Close gh-1155. 2013-02-04 15:13:01 -05:00
Dave Methvin
219a1935ee Fix #13089. Only apply zoom to IE6/7 body. 2013-02-03 13:54:38 -05:00
Richard Gibson
59dd3d9b95 Upgrade QUnit: Welcome to the present! 2013-02-03 12:28:42 -05:00
Dave Methvin
fbce702f4b Ref #12846 and 3b6d8941d8. Fix unit test for IE6. 2013-02-02 22:18:33 -05:00
Andrew Plummer
f005af54e4 event: Stricter type checking in trigger - Fixes #13360 - Closes gh-1153
Squashed commit of the following:

commit 5935a362c7
Author: Andrew Plummer <plummer.andrew@gmail.com>
Date:   Fri Feb 1 02:40:42 2013 +0900

    Using "hasOwnProperty" to check for direct properties "type" and
    "namespace" on events before triggering.
2013-01-31 12:01:34 -06:00
Timmy Willison
dc931af877 Again, magic fixing for previous commit. 2013-01-30 20:52:06 -05:00
Timmy Willison
1e1ea2c44f Revert change to visible/hidden selectors until 1.10 and 2.1. Reopens #13132, #10406. 2013-01-30 20:09:56 -05:00
adamcoulombe
5be99ecc48 Fix #13150, .has() w/o args checks for any callbacks. Close gh-1111. 2013-01-27 13:54:16 -05:00
Dave Methvin
24e7624554 Fix #12656. Make event shorthands excludable. 2013-01-27 00:35:42 -05:00
Dave Methvin
3f9f2b1dbc Fix #12846. Restore overflow when animation is stopped.
(Cherry picked from a6c358d)
2013-01-26 22:05:08 -05:00
Dave Methvin
a3055f3df6 Fix #13316. Use minified version in unit testing.
Also migrates the XHR check added to 2.0 in 62acda819f.
2013-01-26 10:52:19 -05:00
Richard Gibson
ac93559eb9 Fix #13274: Wrap sourceMap directive in multiline comments. Close gh-1143. 2013-01-25 10:03:53 -05:00
byroot
eb47553eea Don't try and convert data for 204 No Content responses. Fixes #13292. Fixes #13261. 2013-01-24 02:35:07 +01:00
Timmy Willison
21af3a9213 Ignore file inputs when serializing forms. File input serialization is handled by plugins. Fixes #13306. 2013-01-23 12:21:48 -05:00
Timmy Willison
bb1d148345 Fix failing tests, add support for empty spans in Opera. Supplements #13132, #10406. 2013-01-21 18:12:16 -05:00
Timmy Willison
3015ee0b5a Treat elements as hidden when either offsetWidth OR offsetHeight is 0. Fixes #13132, #10406. 2013-01-21 17:06:47 -05:00
jaubourg
b83081ba64 Never use the XML as parsed by the XHR instance. Use raw text instead and let the ajax conversion logic do the trick. -20 min/gzipped. Fixes #13276. Unit test added. 2013-01-21 02:44:16 +01:00
danilsomsikov
8f72967ee2 Fix #8335: Avoid memory leak by never setting data on non-element non-document nodes. Ref gh-1127.
(cherry picked from commit cc324abf73)
2013-01-16 14:39:53 -05:00
Richard Gibson
6b1b0a26b4 Fix #13233: re-allow .replaceWith of text nodes. Close gh-1137. 2013-01-16 13:54:01 -05:00
Richard Gibson
13468abaeb No ticket: improve replaceWith testing 2013-01-16 12:30:47 -05:00
Richard Gibson
fc2ba2e136 Fix #13208: only check elements for delegation matches 2013-01-16 00:14:57 -05:00
Mike Sherov
65df32dc21 Fix #13183: Wrong animation initial value calc. Close gh-1136. 2013-01-15 23:28:56 -05:00
Richard Gibson
6c29dd24e9 0a3a424e with moar guard for IE6 2013-01-13 22:59:20 -05:00
Richard Gibson
63f40866fd Fix #13203: delegated events with selector matching Object.prototype property
(cherry picked from commit 31b9579715)
2013-01-13 21:42:36 -05:00
Richard Gibson
0a3a424e65 Fix f860e0bd Firefox failures 2013-01-13 20:37:14 -05:00
Richard Gibson
36457cb6af #13180 unit test 2013-01-13 19:20:18 -05:00
Oleg
8b82af9ef2 Ref 0ed497b. Close gh-1125. 2013-01-11 13:00:37 -05:00
Corey Frang
58003c44ff Adding some more test coverage for .finish() 2013-01-09 11:40:33 -06:00
Oleg
46bbda8d06 Ref gh-1117: Don't stop on a falsy value in buildFragment.
(cherry picked from commit 8e6c1ba92f)
2013-01-09 11:22:44 -05:00
nanto
0c5d2fbabb Propagate context of returned deferred object in Deferred.then(). Fixes #13160. 2013-01-08 17:59:08 +00:00
Dave Methvin
0ed497b045 Resurrect buildFragment and sacrifice jQuery.clean. See gh-1117. 2013-01-08 03:27:10 +00:00
Oleg
ce67f0ce64 Ref #8908. Update IE9 css clone fix. Close gh-1120. 2013-01-08 01:50:18 +00:00
Corey Frang
c27d8e2988 Fix #13103. Add .finish() method. Cherry picked from b6abb31df4. 2013-01-08 01:23:22 +00:00
Dave Methvin
bbdf957e98 Fix #12336. Ensure oldIE really does .empty() selects. 2013-01-06 14:20:35 -05:00
Mike Sherov
abead1c86b Fixes #13088: under IE8, $(selector).attr('style') always return lowercase string 2012-12-31 12:30:02 -05:00
Sebi Burkhard
5eec75e582 Fix #13075. Optimize $.type by preferring typeof. Close gh-1089.
Also fixes browsers where `typeof RegExp === "function"`.
2012-12-23 15:41:56 -05:00
Dave Methvin
e29619031b Know when to hold em, know when to fold em. 2012-12-22 16:55:10 -05:00
Oleg
efb139f7ad Do not perform support check for old Opera. Close gh-1097. 2012-12-20 23:38:19 -05:00
Oleg
c8c6ab6924 Fix #12569. Improve feature detect for event bubbling. Close gh-1076. 2012-12-20 22:08:32 -05:00
Oleg
5afc93c436 Fix #13094. Pass index to .before(fn) fn as documented. Close gh-1093. 2012-12-20 20:55:30 -05:00
Dave Methvin
c928ed432a Remove .live() tests now in Migrate plugin. 2012-12-18 14:42:37 -05:00
Richard Gibson
2ea7876c25 Fix #13064: better test fixture cleanup. Close gh-1075. 2012-12-16 13:09:40 -05:00
Richard Gibson
06f46dad93 let .attr(checked|selected, true) update the property 2012-12-16 10:39:19 -05:00
Richard Gibson
30e2ffbeb8 Resolve a763ae72 test failures 2012-12-15 23:42:24 -05:00
Richard Gibson
a763ae7277 Fix #11115: Normalize boolean attributes/properties. Close gh-1066. 2012-12-15 23:16:48 -05:00
Richard Gibson
2c40fdd4a8 Fix #12600: don't use value property in place of value attribute. Close gh-1063. 2012-12-14 10:37:20 -05:00
Timmy Willison
7d61c5238e Adjust html parsing in event tests to use jQuery.parseHTML explicitly. 2012-12-13 15:52:59 -05:00
timmywil
05531fc408 Adjust jQuery('html') detection to only match when html starts with '<' (not counting space characters). Fixes #11290. 2012-12-13 15:31:02 -05:00
Oleg
643ecf9d63 Ref #8908, gh-886. Avoid clone identity crisis in IE9/10. Close gh-1036. 2012-12-13 10:42:43 -05:00
Richard Gibson
ca26d45395 Fix #13044: execute all QUnit modules in TestSwarm. Close gh-1074. 2012-12-13 10:13:50 -05:00
Oleg
13651f296d Fix #9646. Cloned nodes shouldn't affect original in IE7. Close gh-947. 2012-12-13 09:29:40 -05:00
Dave Methvin
0018f7700b Fix #11230. .appendTo and pals should always stack. 2012-12-13 09:19:41 -05:00
Dave Methvin
40e08f81bd Missed a var declaration in aad235b325. 2012-12-11 23:35:51 -05:00
Paul Ramos
f12611feb4 Fix #4087. insertAfter, insertBefore, etc do not work if origin and destination are same element. Close gh-1068. 2012-12-11 23:35:22 -05:00
Dave Methvin
aad235b325 Fix #13011. Let 'type' attribute be set if the browser allows. 2012-12-11 23:16:08 -05:00
Bennett Sorbo
32842ac365 Fix #12990. Don't add 'px' to column-count. Close gh-1050. 2012-12-11 22:38:37 -05:00
Oleg
93e18922c5 Fix #12956. Improve cloneFixAttributes for IE9/10 case. Close gh-1034.
Remove clear(merge)Attributes hack
2012-12-11 22:06:26 -05:00
Richard Gibson
f42e1e654f Fix IE failures from 55313d32 2012-12-11 16:12:23 -05:00