Commit graph

642 commits

Author SHA1 Message Date
Dave Methvin 2c4b20809e Don't have .val() return selected-but-disabled options, or selected options inside a disabled optgroup. Doesn't change the .val() returned for a disabled select. Fixes #3240, adapted from Nathan Hammond's patch there. 2010-09-24 17:26:22 -04:00
temp01 7862c45ad2 Serialize keys with empty arrays/object values in jQuery.param(). Fixes #6481. 2010-09-24 16:57:25 -04:00
jeresig 515efbdc71 Make sure that undefined is always returned for missing data properties. Follow-up to #6304. 2010-09-24 16:30:57 -04:00
jeresig 76db8a9822 Allow data to be bound to Flash objects (but still stopping short of attaching to applets. Fixes #6121. 2010-09-24 16:24:07 -04:00
Robert Katic 894bd02a06 Test jQuery.type also with document. 2010-09-23 12:08:54 -04:00
Robert Katic 484cc6e220 Made jQuery.type more consistent with host objects. 2010-09-23 12:08:41 -04:00
Robert Katic 7367b524ec Ensure that selector is not broken. 2010-09-23 12:08:29 -04:00
Robert Katic dc4c9abc39 Correcting some imperfections in test added in previous commit. 2010-09-23 12:08:15 -04:00
Robert Katic da5706c974 Added support for map of events in live, die, delegate and undelegate. Fixes #6282. 2010-09-23 12:07:42 -04:00
Robert Katic 97b42492bb Added some tests for #5991. 2010-09-23 12:07:22 -04:00
Robert Katic 694b625c92 Ensured that arrays are not considered same as plain object on deep extending. Fixes #5991. 2010-09-23 12:07:06 -04:00
jeresig 2f603359fe Discovered that another effects bug was fixed with the recent CSS changes (namely that show animations always went to auto, even if they weren't supposed to). Test suite adjusted accordingly. 2010-09-22 23:43:55 -04:00
jeresig 6a1d4f1a80 e3463946e1 actually fixed a previously undicovered but with setting auto, adjust the effects test suite accordingly. Thanks to @bugbegone for the catch. 2010-09-22 23:28:57 -04:00
jeresig d7a6e75241 Add some tests for jQuery.isWindow and make sure that we're operating against an object before testing. 2010-09-22 16:50:38 -04:00
John Resig f9f9ee52e1 Make sure that #... are trimmed from Ajax request URLs. Fixes #4987. 2010-09-22 12:52:44 -04:00
John Resig a32f4d7b6c Fixed the number of expected class tests from a previous commit. Thanks to @bugbegone in 1f667aa035 for the catch. 2010-09-22 12:35:42 -04:00
jeresig 0b4b3ee8a5 Make .data(Object) extend the existing data object. Fixes #6692. 2010-09-22 11:52:32 -04:00
Jacob Wright 626624a19a Fix bug when accessing .data() on an empty set. Return null rather than throwing exception. 2010-09-22 11:38:37 -04:00
Karl Swedberg 1f667aa035 Added full support for easing in all shorthand effects methods (hide, show, toggle, fadeTo, slideUp, etc.). Previously, these methods could only be used with two of the three (speed, easing, callback) arguments, or, in the case of fadeTo, 3 of the 4 (speed, opacity, easing, callback) arguments. Added three more sets of tests to the series of "Chain" tests. Fixes #7014 2010-09-22 11:30:54 -04:00
jeresig 9ad7c21e70 Make sure the data- number has at least one number in it before passing to isNaN. Thanks to @cms in 8ebb9b22df for a heads-up. 2010-09-22 07:34:31 -04:00
John Resig e3463946e1 Make sure that non-px values aren't manipulated before input to height/width. 2010-09-21 17:12:42 -04:00
John Resig ba9e0fc177 Use a different workaround for detecting when Opera finds a status 304 page. Fixes #6060. 2010-09-21 15:22:34 -04:00
jeresig e0b24306a8 Handle some additional data- number edge cases. 2010-09-21 08:30:12 -04:00
jeresig 1f8a5e4bbc Make sure that the data- import also supports arrays. 2010-09-21 08:20:31 -04:00
John Resig e7c2d3b45b Added in support for basic JSON object parsing of data- attributes. 2010-09-21 00:51:45 -04:00
John Resig d5d4e4df65 Tweaked the data number RegExp some to handle some other edge cases. 2010-09-21 00:38:26 -04:00
jeresig 4a46f3d7fb Fixing the problem with data-* based numbers as mention by @jasonwebster in 20673d7. 2010-09-20 20:08:57 -04:00
John Resig 20673d7e58 Pull data-* attributes into .data(). Original code by Andrée Hasson and Paul Irish. Fixes #6921. 2010-09-20 17:47:41 -04:00
John Resig 192bab8ed6 jQuery.css() returns a string value - handle this properly in the animation code. 2010-09-17 14:30:30 -04:00
John Resig 99fcf3babb Fixed some sloppy checks in the effects test suite, makes it more apparent where issues are happening. 2010-09-17 13:38:13 -04:00
jeresig 37b607d281 Split apart jQuery.css into jQuery.css (computed values) and jQuery.style (currently set values). 2010-09-16 10:00:56 -04:00
jeresig 2131e1a7ad Removing leftover debug code. 2010-09-14 09:52:13 -04:00
John Resig 2bda99c18a Making some more adjustments to handle auto CSS properties. 2010-09-13 18:00:28 -04:00
jeresig 70377a65e2 Make sure that effect tests no longer reference the old CSS methods. 2010-09-09 15:48:28 -04:00
jeresig ca3b18ca53 Merge branch 'master' of github.com:jquery/jquery into csshooks 2010-09-08 13:47:56 -04:00
jeresig a44ec40277 Make sure that jQuery works even when the individual modules are loaded separately AND jQuery.noConflict(true) is used. Fixes #7011. 2010-09-08 12:00:29 -04:00
Karl Swedberg 116f3b7c72 added "#main" ancestor selector to an "Only Child" and "Last Child" test to fix broken tests caused by QUnit commit abfab1713ccb588aa87136b199a9ddc8d1b56c4b (Aug 29, 2010) 2010-09-07 08:53:06 -04:00
John Resig 97cbd76695 Fix the order of the element test arguments. 2010-09-02 16:15:54 -04:00
John Resig 90a4abd511 Tweaked the name unit tests to specify the exact nodes from which to test against. 2010-09-02 15:13:10 -04:00
John Resig d48db1f440 Remove cases of :contains() where quotes are used - not using quotes follows more closely with the CSS Selector recommendation. 2010-09-02 14:56:32 -04:00
Brandon Aaron 8d04ffec16 Add .width() and .height() unit test for empty sets. Fix .height() test that was masquerading as a .width() test. Made sure .width() and .height() tests were in-sync (testing the same things). 2010-09-01 11:05:35 -05:00
John Resig 43fbe3b33a Handle two more cases where comments were missing in the test case, in Blackberry 4.6. 2010-08-27 14:16:27 -04:00
John Resig 5d2be7e299 Added some tweaks to $.type to handle null and undefined. Added a bunch of unit tests as well. 2010-08-27 06:10:52 -07:00
John Resig 9ce1d09a0a Blackberry 4.6 doesn't maintain comment nodes in the DOM, ignore them in our test cases. 2010-08-26 15:36:44 -04:00
John Resig 1e9d6e1255 Fixed mistake with tweaked iframe manipulation test. 2010-08-26 15:26:30 -04:00
John Resig c5382ad7c1 Tweak some more jQuery set results in the manipulation tests. Also fixed the order of the expected test results. 2010-08-26 15:21:01 -04:00
John Resig c0fe98f028 Tweak more element orders in the manipulation tests. Also differentiate between iframe test failing and the inability to access iframe internals (as in the case of Blackberry). 2010-08-26 14:57:23 -04:00
John Resig 3b76b58815 Tweaked manipulation test to ignore order of elements from selector (not important to the test). 2010-08-26 14:37:58 -04:00
John Resig dc060f08cd Tweaked anchor test to work better on Blackberry 4.7. 2010-08-26 12:36:50 -04:00
John Resig 1bdcffba8e Simplifying some of the .val() test code. 2010-08-23 14:23:13 -07:00