aboutsummaryrefslogtreecommitdiffstats
path: root/test/unit/offset.js
Commit message (Collapse)AuthorAgeFilesLines
* Tests: Add support for running unit tests via grunt with karmaTimo Tijhof2017-12-181-3/+3
| | | | | | | | | | | | | - Update QUnit to 1.23.1 - Remove unused dl#dl from test/index.html - Remove unused map#imgmap from test/index.html - Ensure all urls to data use baseURI - Add the 'grunt karma:main' task - customContextFile & customDebugFile - Add 'npm run jenkins' script Close gh-3744 Fixes gh-1999
* Test: ensure position/offset return mutable objectsJason Bedard2017-07-101-5/+31
| | | | | Fixes gh-3612 Closes gh-3695
* Tests: Correct expected assertion countRichard Gibson2017-04-291-1/+1
| | | | Ref e94b5b0bbf8d8179bc79ab749470e71092225862
* Tests: Clean up offset debuggingRichard Gibson2017-04-291-17/+0
| | | | | Ref 1d2df772b4d6e5dbf91df6e75f4a1809f7879ab0 Ref c0edd8dc18e02999a25768a4946093b015045f80
* Tests: Adjust by actual scroll position, rather than expectedRichard Gibson2017-04-291-12/+11
| | | | Ref 1d2df772b4d6e5dbf91df6e75f4a1809f7879ab0
* Tests: Add debugging to investigate iOS failuresRichard Gibson2017-04-281-2/+22
| | | | Ref 1d2df772b4d6e5dbf91df6e75f4a1809f7879ab0
* Tests: Reset iframe window scroll after updating html/document positionRichard Gibson2017-04-281-3/+10
| | | | Ref 1d2df772b4d6e5dbf91df6e75f4a1809f7879ab0 Closes gh-3649
* Tests: Allow a mock QUnit.test for perfect testIframe fidelityRichard Gibson2017-04-251-12/+11
| | | | Ref 1d2df772b4d6e5dbf91df6e75f4a1809f7879ab0 Closes gh-3647
* Tests: Improve offset test setup and labelsRichard Gibson2017-04-241-34/+31
| | | | | | Hopefully this fixes iOS testing: http://swarm.jquery.org/job/5226 Ref 1d2df772b4d6e5dbf91df6e75f4a1809f7879ab0 Closes gh-3641
* Offset: Use correct offset parents; include all border/scroll valuesRichard Gibson2017-04-241-1/+210
| | | | | | | | Thanks @anseki Fixes gh-3080 Fixes gh-3107 Closes gh-3096 Closes gh-3487
* Offset: report offset for 0 sized elementsJason Bedard2016-12-121-2/+30
| | | | Fixes gh-3267 Closes gh-3367
* Build: ESLint detailsOleg Gaidarenko2016-06-111-55/+57
| | | | | | Use eslint pragmas, fix new errors, etc Closes gh-3148
* Tests: Refactor testIframe() to make it DRYer and more consistentDave Methvin2016-04-111-8/+8
| | | | | Ref gh-3040 Closes gh-3049
* Tests: Make iframe tests wait after checking isReadyDave Methvin2016-04-111-15/+8
| | | | Ref gh-3040
* Docs: Update support comments to follow the new syntaxMichał Gołębiowski2016-03-301-1/+1
| | | | | The changes follow the spec proposed in: https://github.com/jquery/contribute.jquery.org/issues/95#issuecomment-69379197
* Docs:Tests: Remove obsolete code from tests, update support commentsMichał Gołębiowski2016-03-081-3/+2
| | | | | | | | | | Support comments that were lacking the final IE/Edge version that exhibits the bug were checked & updated. Links to the Chromium bug tracker were updated. Code in tests related to unsupported browsers (like Android 2.3 in non-basic tests) has been removed. Fixes gh-2868 Closes gh-2949
* Tests: account for new offset testsOleg Gaidarenko2016-02-091-1/+1
| | | | Ref 49833f7795d665ff1d543c4f71f29fca95b567e9
* Revert "Offset: account for scroll when calculating position"Oleg Gaidarenko2016-02-091-12/+2
| | | | | | | | | | | | This reverts commit 2d715940b9b6fdeed005cd006c8bf63951cf7fb2. This commit provoked new issues: gh-2836, gh-2828. At the meeting, we decided to revert offending commit (in all three branches - 2.2-stable, 1.12-stable and master) and tackle this issue in 3.x. Fixes gh-2828
* Offset: offsetLeft/Top on empty set returns undefinedDave Methvin2015-11-101-2/+2
| | | | | | Fixes gh-2319 Closes gh-2702 Ref gh-2701
* CSS: Correct misrepresentation of "auto" horizontal margins as 0Richard Gibson2015-10-181-3/+5
| | | | | | | | | | | | Fixes gh-2237 Closes gh-2276 (cherry picked from commit 214e1634ab9b1d13d53647dd5de3bdf7a091d49c) Conflicts: src/css.js src/css/support.js test/unit/support.js
* Offset: allow small differences in offset.topJoelle Fleurantin2015-10-181-1/+3
| | | | Fixes gh-2590
* Build: Update jscs and lint filesOleg Gaidarenko2015-09-071-209/+207
| | | | Fixes gh-2056
* Tests: partially use new qunit interfaceOleg Gaidarenko2015-08-161-161/+161
| | | | | | | | | | | | 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 Fixes gh-2540
* Offset: add tests for hidden elements + scrollTimmy Willison2015-06-161-1/+13
| | | | | - Also add comments to hidden/disconnected tests noting this is to ensure consistency between branches
* Offset: return zeros for disconnected/hidden elementsTimmy Willison2015-06-161-14/+8
| | | | | Fixes gh-2310 Close gh-2396
* Offset: account for scroll when calculating positionRichard McDaniel2015-05-121-1/+12
| | | | | Fixes gh-1708 Close gh-1714
* Offset: remove ownerDocument check in offset getterTimmy Willison2015-05-051-10/+1
| | | | Fixes gh-2115
* Offset: Fix .offset() to correctly work with ShadowDOMArthur Stolyar2015-05-051-5/+23
| | | | | Fixes gh-1784 Close gh-2043
* 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 Fixes gh-1981 Ref 4ab8603669e2bbc8644e402927c33ce422d7aaa3
* Core: Remove deprecated context and selector propertiesDave Methvin2015-01-111-3/+3
| | | | | Fixes gh-1908 Closes gh-2000
* Offset: don't run scrollTop/scrollLeft iframe test in mobile SafariOleg Gaidarenko2014-12-251-7/+16
| | | | | | | 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 62a333e0646d3011377ed13a6fcfbb08e91e2bef
* Event: fix incorrect window bug with scrollTop/Left in iframesAditya Raghavan2014-12-241-0/+15
| | | | | Fixes gh-1945 Closes gh-1959
* Fix #14340. Remove remnants of oldIE from unit tests. Close gh-1425.Michał Gołębiowski2013-11-111-47/+23
|
* Update jshintrc to conform to new style guide. Conform to onevar and unused ↵Timmy Willison2013-04-091-20/+30
| | | | in tests. Fixes #13755.
* Improve CSS and `Support:` comments. Close gh-1220.Michał Gołębiowski2013-04-061-2/+1
| | | | | | | | 1) corrected box-sizing rules order - the unprefixed value should always be the last one 2) removed last semi-colons in CSS rules 3) updated support comments code review changes + more consistent comment spacing
* Know when to hold em, know when to fold em.Dave Methvin2012-12-221-7/+12
|
* Test: Update index.html to new QUnit format. Close gh-1061.Timo Tijhof2012-12-101-3/+3
| | | | Depends on jquery/sizzle#177, included with the Sizzle submodule in this commit.
* No ticket: update test suite to pass QUnit globals check in most ↵Richard Gibson2012-11-051-20/+32
| | | | environments. Close gh-1016.
* Fixes #12139, make sure absolutely positioned elements have HTML as ↵David Fox2012-10-261-1/+6
| | | | offsetParent, closes gh-1010
* Fix #11542. document.body should not be special in .offset() and ↵Daniel Gálvez2012-10-241-6/+8
| | | | document.documentElement is the default element.offsetParent. Close gh-899.
* fix failing offset testsMike Sherov2012-10-171-2/+19
|
* Fixes #12749, correctly detect position() for position:fixed elements, ↵Merrifield, Jay2012-10-171-31/+37
| | | | closes gh-991
* enforce double quotes via JSHint. Closes gh-975Mike Sherov2012-10-161-5/+5
|
* Fix #12534. Don't die on browsers lacking getBoundingClientRect.Dave Methvin2012-09-131-0/+9
|
* Remove IE8 testswarm hacks for offset.Dave Methvin2012-07-251-20/+9
|
* Remove a few stray spaces in unit tests.Dave Methvin2012-07-101-2/+2
|
* Fix #11962. Standardize getter return values for empty sets.Uri Gilad2012-07-091-0/+6
|
* Fix #8482, offsetParent should not return null. Closes gh-847.Nowres Rafid2012-07-061-1/+4
|
* Make unit tests friendly to Closure Compiler. Closes gh-845.Chad Killingsworth2012-07-051-202/+207
| | | | | | Conflicts: test/unit/effects.js test/unit/offset.js
* Ever notice that static and problematic rhyme?Dave Methvin2012-07-031-3/+8
|