aboutsummaryrefslogtreecommitdiffstats
path: root/test/unit
Commit message (Collapse)AuthorAgeFilesLines
...
* Offset: Fix .offset() to correctly work with ShadowDOMArthur Stolyar2015-05-051-5/+23
| | | | | Fixes gh-1784 Close gh-2043
* Selector: add test for jQuery.unique() aliasTimmy Willison2015-05-051-1/+3
|
* Selector: add jQuery.uniqueSort; deprecate jQuery.uniqueTimmy Willison2015-05-042-4/+4
| | | | Fixes gh-2228
* Data: camelCasing should not ignore caseTimmy Willison2015-05-041-0/+10
| | | | Fixes gh-2070
* Data: always camelCase keys in .data()Timmy Willison2015-05-041-6/+90
| | | | | | | - This effectively implements our "Embrace HTML5" option - Related: http://goo.gl/GcQAtn Fixes gh-2257
* Data: do not include digits when camelCasingTimmy Willison2015-05-042-5/+6
| | | | Fixes gh-1751
* Event: remove guard for falsy handler argument of jQuery#on methodOleg Gaidarenko2015-05-031-14/+0
| | | | | | | | | | (cherry-picked from fac67a984268ef8f7de952666fda6d8d32754f5f) Since we don't have this in off method and its a common perception that this is a rudiment code Ref gh-2248 Closes gh-2249
* Manipulation: Make an HTML interception pointRichard Gibson2015-04-302-48/+79
| | | | | | | | | | | Fixes gh-1747 Closes gh-2203 (cherry picked from commit 225bde37c997f5ddd9fe00fdfb8e9a43545cfbbc) Conflicts: src/manipulation.js test/unit/manipulation.js
* Manipulation: Detect sneaky no-content replaceWith inputRichard Gibson2015-04-301-4/+20
| | | | | | | | | | | | | Fixes gh-2204 Ref 642e9a45579cfa90861b8ea71a95dd077775caaf Closes gh-1752 Closes gh-2206 (cherry picked from commit 4b27ae16a2b911f75b341b56d9d939bc65a9657a) Conflicts: src/manipulation.js test/unit/manipulation.js
* Core: add workaround for iOS JIT error in isArrayLikeTimmy Willison2015-04-291-0/+21
| | | | Fixes gh-2145
* Deferred: Always handle progress callbacks before done/failRichard Gibson2015-04-221-0/+48
| | | | | | | | Fixes gh-2013 Fixes gh-2010 Closes gh-2210 (cherry picked from commit 002240a6eb1cee2fcd886d5cf44893eb67f246f1)
* Attributes: revert returning null for non-existant attributesTimmy Willison2015-03-301-47/+38
| | | | Ref https://github.com/jquery/jquery/issues/2118
* Wrap: Support .unwrap( selector) for selective unwrappingDave Methvin2015-03-301-0/+25
| | | | | | Fixes gh-1744 Closes gh-2003 (cherry picked from commit 7b09235ceed57bbcc26fc2c76147eb4e95ebdb92)
* Core: Update tested jsdom, drop obsolete workaroundsMichał Gołębiowski2015-03-251-2/+1
| | | | | | | | | | | The latest version supporting Node.js is 3.1.2; some workarounds are not needed for this version. For example, in jsdom 3.1.2 a document created via document.implementation.createHTMLDocument( "" ) has a body. (partially cherry-picked from 95c0a10e15477a5031185e2d656d896905562afa) Fixes gh-2153 Closes gh-2154
* Offset: Round offset value for the sake of floating errorsMichał Gołębiowski2015-03-231-2/+5
| | | | | | | | | | IE10+ may return not exactly the offset.top value set in an offset callback if parent has fractional top offset itself. Checking for being close to the desired result fixes the test error. (cherry-picked from 62ae2d0fb7ac011bf2ad778f8158de408e785927) Fixes gh-2147
* Deferred: Backwards-compatible standards interoperabilityRichard Gibson2015-03-201-82/+418
| | | | | | | Fixes gh-1722 Closes gh-1996 (cherry picked from commit 555a50d340706e3e1e0de09231050493d0ad841e)
* Tests: Expand CSS relative adjustment tolerance for IERichard Gibson2015-03-161-2/+2
| | | | | | | Ref 48be675200e817f40fa8ec25da1be2ab0839d28d Ref 4a8000b51a9854e21361e435e4c9b9cbd8ac458a (cherry picked from commit e22ef5d9017c44cad97ae541fefce76cc455edcb)
* Tests: Fix CSS relative adjustment test for round-down browsersRichard Gibson2015-03-161-7/+19
| | | | | | | Ref 9b03f6df88a8d9dbda3f7893cdd84e3a3c70da17 Ref 6fb2cefc602cf8bd8b85373f480e978bb8978e37 (cherry picked from commit 48be675200e817f40fa8ec25da1be2ab0839d28d)
* Attributes: revert returning null for non-elementsTimmy Willison2015-03-161-1/+1
|
* Attributes: fix failing test for new return valueTimmy Willison2015-03-161-2/+11
|
* Attributes: return null when attribute does not existWinston Howes2015-03-161-38/+38
| | | | | | | | Fixes gh-2118 Close gh-2129 Conflicts: test/unit/attributes.js
* CSS: Support relative adjustment in any applicable unitMr212015-03-091-0/+52
| | | | | | | | | | | Fixes gh-1711 Closes gh-2011 (cherry picked from commit 9b03f6df88a8d9dbda3f7893cdd84e3a3c70da17) Conflicts: src/css.js src/effects.js
* Ajax: remove deprecated extensions from ajax promiseOleg Gaidarenko2015-02-171-6/+6
| | | | | | (cherry-picked from 9d1b989f20b550af3590691723b0620f6914626e) Fixes gh-2084 Closes gh-2092
* Build: fix broken assertions caused by QUnit updateOleg Gaidarenko2015-02-152-9/+9
| | | | | | | | | QUnit update broke couple traversing and manipulation tests, since new qunit added another form to the test-suite while some of jQuery selectors weren't specific (cherry-picked from 8b6aeae52d4c53a53468678ccd45e9dda9665004) Ref db31206d36a3a75c011310e282e0fdc9a0f3d99d
* Ajax: make jQuery#load "type" field explicitOleg Gaidarenko2015-02-151-1/+12
| | | | | | | | | * Move "evalScript.php" file to appropriate place * Make jQuery#load "type" field explicit and add test for it Ref trac-11264 Ref 4ef120d3f2578fe3d52eb6c0d0641df945991391
* Core: simplify "each" stylesheet iteration testOleg Gaidarenko2015-02-151-1/+1
| | | | | (cherry-picked from fcb6c4d1d6552c7e54df16a36b171858bdf0553f) Closes gh-2089
* Offset: don't run scrollTop/scrollLeft iframe test in Android 2.3 & 4.0Oleg Gaidarenko2015-02-111-5/+8
| | | | | | | | | | | | | Android 2.3 resize the iframe by its content meaning it's not possible to scroll the iframe only its parent element. It seems (not confirmed) in android 4.0 it's not possible to scroll iframes from the code (cherry-picked from 0c466438d1feaec302fec13eafeeb063bbfd6a19) Fixes gh-1981 Ref 4ab8603669e2bbc8644e402927c33ce422d7aaa3
* Manipulation: don't auto-insert tbodyOleg Gaidarenko2015-02-111-0/+75
| | | | | | Fixes gh-1835 Closes gh-2021 Ref e984d1c79cc476062818e03df04a366baa13d197
* Manipulation: simplify html wrappersOleg Gaidarenko2015-02-111-1/+12
| | | | | | | | | | Take advantage of html serialization for html wrappers - saves 26 bytes Plus add additional test for "col" element (cherry-picked from 0ea342a6a6dce793c1b0f14f051c2573f40f4e44) Closes gh-2031 Fixes gh-2002
* CSS: Add a support test for the hack for .css('marginRight') etc.Michał Gołębiowski2015-02-051-0/+11
| | | | | | | | | | | | | This hack turns out to be needed by Android 4.0-4.3. Add a support test so that the hack is invoked only where needed. Refs 3747cc642a48d2a5a8ac83069f66bddd33bea301 Refs gh-1815 Refs gh-1820 Refs gh-1842 Closes gh-2061
* Data: Use a PDF object instead of a Java applet for acceptData testingMichał Gołębiowski2015-01-291-4/+4
| | | | | | | | | This should fix "Java out of date" errors on BrowserStack. (cherry-picked from 087d280ad1160de53a45ea96184911194f7b46e0) Fixes gh-1938 Closes gh-2028
* Ajax: Run the PATCH test only in IE8 on TestSwarmMichał Gołębiowski2015-01-291-10/+13
| | | | | Fixes gh-1994 Closes gh-2026
* Core: Return empty array instead of null for parseHTML("")Timo Tijhof2015-01-191-4/+9
| | | | | | | | Fixes gh-1997 Close gh-1998 Conflicts: test/unit/core.js
* Manipulation: increase delay of data-URI testOleg Gaidarenko2015-01-151-1/+1
| | | | | | For Safar7/Opera - shot in the dark, can't reproduce this locally Ref gh-1993
* Event: HTML5 drop events inherit from MouseEventDave Methvin2015-01-141-7/+12
| | | | | | | | | Fixes gh-2009 Ref gh-1925 (cherry picked from commit d7e5fcee519e5f3e840beef9e67a536e75133df9) Conflicts: test/unit/event.js
* Manipulation: blacklist IE8 from running tests for tag-hyphenated elemsOleg Gaidarenko2015-01-141-0/+7
| | | | | | | IE8 supports only HTML elements it knows about, but if user uses custom elements a.k.a. tag-hyphenated, we assume it doesn't try to use them with IE8 Ref 5d522f5c740f1f919a630a5f6ec3d40fad840ff7
* Manipulation: add support to tag-hyphenated elementsLeonardo Braga2015-01-131-0/+17
| | | | | Ref #1987 Ref 85ffc6d973865a031ded170934e0acfc2e97cb11
* Core: add support to tag-hyphenated elementsLeonardo Braga2015-01-131-0/+13
| | | | | Ref #1987 Ref 534f13025aeb59a7d5893ce62efafa0b066a4934
* Core: Remove deprecated context and selector propertiesDave Methvin2015-01-112-47/+4
| | | | | | Fixes gh-1908 Closes gh-2000 (cherry picked from commit 0ea8c32863af31fb5cfc184e8d513bbae35583e8)
* Ajax: $.post and $.get can now take an options objectGeorge Mauer2015-01-111-0/+20
| | | | | | Fixes gh-1986 Closes gh-1995 (cherry picked from commit 89ce0af2cf7f001647e74fc1de92ce94a51fd5c2)
* Callbacks: Don't abort execution on .lock()Richard Gibson2015-01-101-4/+12
| | | | | Fixes gh-1990 Closes gh-1991
* Callbacks: No object starts out lockedRichard Gibson2015-01-101-6/+9
| | | | Fixes gh-1989
* Ajax: Fix cross-domain detection test for non-default portVictor Homyakov2015-01-061-1/+1
| | | | Closes gh-1954
* Event: Normalize mouse event properties in drag eventsAditya Raghavan2015-01-051-0/+19
| | | | | | | | DragEvent is a superset of MouseEvent, so we want to fix up mouse properties like pageX and pageY. Fixes gh-1925 (cherry picked from commit 389b2ab3b93bfd68ca6c6153a43e11d93ab9ec71)
* Deferred: Fix $.when with resolved deferred and progress callbacksNicolas HENRY2014-12-251-0/+22
| | | | Ref ab20d9d24f0a95df382c02e9ef3dcc4adb86e4f1
* Offset: fix iframe scrollTop/Left test for IE8 and iPhoneOleg Gaidarenko2014-12-251-8/+22
| | | | | | | | | | | | | | * IE8 need a doctype, otherwise IE will scroll it, but will still show old values. It wasn't noticable before, since IE8 will update values if in the dev tools you swtich to "Quirks mode" and then back again, then this tab will always show the correct values even if you update it * iPhone resize the iframe by its content regardless of the width, height values, meaning it's not possible to scroll the iframe only its parent element Ref ae30fb6c27a2121578d3ce7ca6e2ba1d205545b8
* Offset: fix iframe scrollTop/Left test for IE8Oleg Gaidarenko2014-12-241-0/+1
| | | | Ref ae30fb6c27a2121578d3ce7ca6e2ba1d205545b8
* CSS: simplify hack of css getter for the computed valuesOleg Gaidarenko2014-12-241-0/+11
| | | | Ref gh-1906
* Manipulation: make wrapAll funarg execute only onceOleg Gaidarenko2014-12-241-0/+60
| | | | Ref 359b03cac74d7336676a6992f14b7ccab9b28659
* CSS: Add unit tests for negative margins and positioningAditya Raghavan2014-12-241-0/+15
| | | | Ref 1b932bb7867924b98529537f8ccd35db979ae22a