Commit Graph

1857 Commits

Author SHA1 Message Date
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
Mike Sherov
ef6d8779de Fixes #11938: Adding array getter method to jQuery.fn.css 2012-12-11 13:58:14 -05:00
Timo Tijhof
55313d32a2 Test: Update index.html to new QUnit format. Close gh-1061.
Depends on jquery/sizzle#177, included with the Sizzle submodule in this commit.
2012-12-10 21:48:20 -05:00
Timo Tijhof
cef044d82e Test: Remove fixtures from QUnit.done hook. Close gh-1069.
This fixes jquery/testswarm#197. These are currently removed from
the TestSwarm injector, however this is jQuery specific, and
should be done from this end instead.
2012-12-10 20:45:20 -05:00
Rick Waldron
3c7f2af81d Be specific about Firefox nodes-as-nodelist. Never assume that modern browsers will "get it right".
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
2012-12-10 20:19:26 -05:00
Rick Waldron
07a7b3e4cf Fixes #13021. Normalization of core utility array like detection based on standard protocol by Richard Gibson <richard.gibson@gmail.com>. Closes gh-1064 2012-12-10 13:52:02 -05:00
Dave Methvin
f8f52cfcf4 Fix #13019. Disconnected nodes with .replaceWith are a noop. Close gh-1062. 2012-12-09 14:10:38 -05:00
Richard Gibson
d343e6b9ed Fix #12904: Firefox defaultDisplay with body/iframe display:none. Report and solution by @maranomynet; test by @rwldrn. 2012-12-08 18:04:13 -05:00
jaubourg
23d7cf0488 Deferred: .resolve(), .reject() and .notify() now set the callback context to the promise instance rather than the deferred instance ; .then() has also been amended. Fixes #11405. 2012-12-07 15:14:12 +01:00
Richard Gibson
747600b157 Don't test what ain't there no more 2012-12-06 17:01:36 -05:00
Timo Tijhof
5dd8a90f73 Make compatible with jshint, lint test/data. Close gh-1043. 2012-12-06 13:46:37 -05:00
jaubourg
b7ece8c620 Revert "Organizes the php scripts used for testing better, so that the whole logic of a unit, server-side and client-side, is contained within the unit itself. Nearly all ajax unit tests take advantage of the new 'framework'. Lots of files got deleted because they became redundant or weren't used anymore."
This reverts commit 228ab3ddae.
2012-12-05 14:54:14 +01:00
jaubourg
6df2900d3a Revert "Fixes spacing"
This reverts commit 2a419a7e8f.
2012-12-05 14:54:10 +01:00
jaubourg
7f7007dffe Revert "228ab3d followup 1: fix test failures. Close gh-1056."
This reverts commit 20608b3579.
2012-12-05 14:54:00 +01:00
Richard Gibson
20608b3579 228ab3d followup 1: fix test failures. Close gh-1056. 2012-12-05 02:12:32 -05:00
Dave Methvin
4437002771 Radical idea: Calculate expect() value before fn call. 💜 2012-12-04 22:14:08 -05:00
Rod Vagg
551c2c9f4a Fixes #12449. make replaceWith() clone elements where required. Closes gh-920 2012-12-04 21:50:22 -05:00
Paul Ramos
13449a99b2 Fix #11989. Remove fragment cache, moving to jquery-compat. Close gh-1052. 2012-12-04 21:30:37 -05:00
Paul Ramos
ec72d9f4db Fix #12756. Restyle manipulation unit tests. Close gh-1053.
https://github.com/jquery/2012-dev-summit/issues/56
2012-12-04 20:42:52 -05:00
jaubourg
2a419a7e8f Fixes spacing 2012-12-04 07:45:30 +01:00
jaubourg
228ab3ddae Organizes the php scripts used for testing better, so that the whole logic of a unit, server-side and client-side, is contained within the unit itself. Nearly all ajax unit tests take advantage of the new 'framework'. Lots of files got deleted because they became redundant or weren't used anymore. 2012-12-04 07:40:12 +01:00
Richard Gibson
4ada325479 More improvements per @jaubourg 2012-12-03 11:32:19 -05:00
Richard Gibson
ad690f8151 Improvements per @jaubourg 2012-12-03 00:49:40 -05:00
Richard Gibson
5b9bf13439 No ticket: improve global variable/ajax request tracking 2012-12-02 23:32:16 -05:00
Dave Methvin
27c9360a1b Don't really want to expect any global events here. 2012-12-02 10:53:34 -05:00
Dave Methvin
b5acda7af2 Followup to #12989 fix, improve unit test resiliency. 2012-12-02 10:48:26 -05:00
Dave Methvin
c2d6847de0 Fix #12989. Remove ajax "global" event behavior. 2012-12-01 20:29:32 -05:00
Richard Gibson
b382af685a keep manipulation.js assertions consistent 2012-11-30 16:11:51 -05:00
jaubourg
6378a19c46 Unit test for #12004 2012-11-29 00:15:17 +01:00
Oleg
9ae6b1a019 Fix #12957. Simplify wrapMap, it doesn't need end tags. Close gh-1044. 2012-11-27 21:32:59 -05:00
Richard Gibson
243d4cc83c Don't let removeClass create attributes 2012-11-27 09:46:06 -05:00
jaubourg
b9dfcfd736 sandboxes start for real this time (fixes test failures in IE) 2012-11-27 02:39:08 +01:00
jaubourg
e679f6c2db Use strictEqual rather than equal 2012-11-27 02:38:20 +01:00
jaubourg
512b826f9f Removes unnecessary closure and apply 2012-11-26 12:09:42 +01:00
jaubourg
603e70b90e Greatly simplifies ajaxTest 2012-11-26 11:49:20 +01:00
jaubourg
d31cef38f2 Total revamping of the ajax unit tests 2012-11-26 03:31:19 +01:00
Corey Frang
516a7a8792 Fix #12803. Add jQuery.fx.start as a hook point. Close gh-1024. 2012-11-25 15:23:02 -05:00
Dave Methvin
67df705bf5 Fix #12191. jQuery.type should return "error" for Error objects. 2012-11-24 17:22:14 -05:00
dcooper
78c1560065 Fix #9960, allow manipulation for parent document nodes. Close gh-924. 2012-11-24 16:53:27 -05:00
Dave Methvin
3fce794844 Fix #12733. Ignore excess spaciness in event strings.
Thanks @bentruyman!
2012-11-24 16:05:20 -05:00
Dave Methvin
6b00b3cad9 Close #10882. Test case for "hover" event in 1.9 2012-11-24 15:25:54 -05:00
Dave Methvin
b7ec6ddd45 Fix #12868. Use native focus/blur to get event order right. 2012-11-24 14:44:39 -05:00
Dave Methvin
1fb2f92c35 Fix #3827. Get the correct checkbox status for a click handler. 2012-11-24 14:08:51 -05:00
Richard Gibson
bb570fc373 Fix #12920: remove addMandatoryAttributes. Close gh-1037. 2012-11-20 22:57:41 -05:00
Richard Gibson
e889134058 Fix #11795, #10470: keep scripts in DOM; execute only on first insertion. Close gh-864. 2012-11-19 09:50:19 -05:00
aFarkas
ca5e06a15c Fix #12915, add propHook for scrip src property on oldIE. Close gh-1035. 2012-11-18 21:20:12 -05:00