aboutsummaryrefslogtreecommitdiffstats
path: root/test/unit/offset.js
Commit message (Collapse)AuthorAgeFilesLines
* Tests: remove unnecessary scroll feature testTimmy Willison2024-06-101-30/+11
| | | | | - it wasn't working properly anyway Closes gh-5507
* Build: improve specificity of eslint config; add ecma versionsTimmy Willison2024-06-061-2/+2
| | | Closes gh-5501
* Offset: Increase search depth when finding the 'real' offset parentLiam James2024-04-191-1/+4
| | | | | | | | Changes: * Increase search depth when finding for the real offset parent * Ignore offset for statically positioned offset parent * Add tests for the position of an element in a table Closes gh-4861
* Build: migrate most grunt tasks off of gruntTimmy Willison2023-09-181-64/+65
| | | | | | | | | | | | | | | | | | | | | | | | | Updated tasks include: - lint - npmcopy - build, minify, and process for distribution. - new custom build command using yargs - compare size of minified/gzip built files - pretest scripts, including qunit-fixture, babel transpilation, and npmcopy - node smoke tests - promises aplus tests - new watch task using `rollup.watch` directly Also: - upgraded husky and added the new lint command - updated lint config to use new "flat" config format. See https://eslint.org/docs/latest/use/configure/configuration-files-new - Temporarily disabled one lint rule until flat config is supported by eslint-plugin-import. See https://github.com/import-js/eslint-plugin-import/issues/2556 - committed package-lock.json - updated all test scripts to use the new build - added an express test server that uses middleware-mockserver (this can be used to run tests without karma) - build-all-variants is now build:all Close gh-5318
* Tests: Exclude tests based on compilation flags, not API presenceMichał Gołębiowski-Owczarek2022-06-281-1/+1
| | | | | | | | | | Introduces a new test API, `includesModule`. The method returns whether a particular module like "ajax" or "deprecated" is included in the current jQuery build; it handles the slim build as well. The util was created so that we don't treat presence of particular APIs to decide whether to run a test as then if we accidentally remove an API, the tests would still not fail. Fixes gh-5069 Closes gh-5046
* Docs: Replace `#NUMBER` Trac issue references with `trac-NUMBER`Michał Gołębiowski-Owczarek2022-01-041-8/+8
| | | | | | | | | | | | | The GitHub UI treats `#NUMBER` as referring to its own issues which is confusing when in jQuery source it's usually referring to the old deprecated Trac instance at https://bugs.jquery.com. This change replaces all such Trac references with `trac-NUMBER`. A few of the references came with the Sizzle integration and referred to the Sizzle GitHub bug tracker. Those have been replaced with full links instead. A new entry describing issue reference conventions has been added to README. Closes gh-4993
* Build: Rename master to main across the repositoryMichał Gołębiowski-Owczarek2021-02-051-3/+3
| | | | | | The default branch was updated, this updates the remaining occurrences in code & comments. Closes gh-4838
* Manipulation: Make jQuery.htmlPrefilter an identity functionMichał Gołębiowski-Owczarek2020-03-161-5/+5
| | | Closes gh-4642
* Core: Drop support for IE <11, iOS <11, Firefox <65, Android Browser & PhantomJSMichał Gołębiowski-Owczarek2019-04-291-73/+21
| | | | | | | | | | | Also, update support comments format to match format described in: https://github.com/jquery/contribute.jquery.org/issues/95#issuecomment-69379197 with the change from: https://github.com/jquery/contribute.jquery.org/issues/95#issuecomment-448998379 (open-ended ranges end with `+`). Fixes gh-3950 Fixes gh-4299 Closes gh-4347
* Build: Update QUnit from 1.23.1 to 2.9.2Michał Gołębiowski-Owczarek2019-03-041-0/+2
| | | Closes gh-4307
* Build: Update test code for compatibility with QUnit 2.x (#4297)abnud12019-02-181-2/+2
| | | | | | | | Also, run `grunt npmcopy` to sync the "external" directory with dependencies from package.json. For example, the Sinon library version didn't match. Ref gh-4234 Closes gh-4297
* 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