aboutsummaryrefslogtreecommitdiffstats
path: root/test/data
Commit message (Collapse)AuthorAgeFilesLines
* Core: Preserve CSP nonce on scripts with src attribute in DOM manipulationbuddh42019-03-252-0/+18
| | | | | Fixes gh-4323 Closes gh-4328
* Build: Run the basic test suite in jsdomMichał Gołębiowski-Owczarek2019-03-111-0/+40
| | | | | | The basic test suite is now run in jsdom on all supported Node.js versions (8, 10 & 11 as of now). Closes gh-4310
* Build: Remove manual QUnit fixture resettingMichał Gołębiowski-Owczarek2019-03-111-2/+0
| | | | | | It was needed when QUnit 1.x one used but we've since upgraded to QUnit 2.x. Closes gh-4312 Ref gh-4307
* Build: Update QUnit from 1.23.1 to 2.9.2Michał Gołębiowski-Owczarek2019-03-042-2/+2
| | | Closes gh-4307
* Build: Update jsdom; migrate a test with Symbol polyfill to an iframe testMichał Gołębiowski-Owczarek2019-03-042-0/+28
| | | | | | | | | | | So far, we've been testing that jQuery element iteration works with polyfilled Symbol & transpiled for-of via a Node test with jsdom with the Symbol global removed. Unfortunately, jsdom now requires Symbol to be present for its internal functionality so such a test is no longer possible. Instead, it's been migrated to an iframe test with transpiled JavaScript. This PR also enables us to use ECMAScript 2017 or newer in Node.js code. Closes gh-4305
* Build: Update test code for compatibility with QUnit 2.x (#4297)abnud12019-02-189-17/+17
| | | | | | | | 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
* Core: Support passing nonce through jQuery.globalEvalMichał Gołębiowski-Owczarek2019-01-213-1/+20
| | | | | | Fixes gh-4278 Closes gh-4280 Ref gh-3541 Ref gh-4269
* Manipulation: Respect script nomodule attribute in DOM manipulationMichał Gołębiowski-Owczarek2019-01-212-0/+2
| | | | | | | | | | | | | PR #3869 added support for `<script type="module">` & some support for the `nomodule` attribute but with no tests for `nomodule` and with the attribute only respected on inline scripts. This commit adds support for source-based scripts as well. It also adds tests for `nomodule`, including making sure legacy browsers execute such scripts as they'd natively do - that's the whole point of `nomodule` scripts, after all. Fixes gh-4281 Closes gh-4282 Ref gh-3871 Ref gh-3869
* Core: Preserve CSP nonce on scripts in DOM manipulationMichał Gołębiowski-Owczarek2019-01-143-0/+29
| | | | Fixes gh-3541 Closes gh-4269
* Dimensions: fall back to offsetWidth/Height for border-box in IETimmy Willison2018-11-271-0/+4
| | | | | | | | - Use getClientRects() to explicitly detect hidden/disconnected elements Close gh-4223 Fixes gh-4102
* Tests: fix ajax test failure; add to header instead of replaceTimmy Willison2018-11-261-1/+1
|
* Ajax: Fix getResponseHeader(key) for IE11Andrei Fangli2018-11-261-0/+3
| | | | | | | | | | | - getResponseHeader(key) combines all header values for the provided key into a single result where values are concatenated by ', '. This does not happen for IE11 since multiple values for the same header are returned on separate lines. This makes the function only return the last value of the header for IE11. - Updated ajax headers test to better cover Object.prototype collisions Close gh-4173 Fixes gh-3403
* Tests: Allow Karma to load unminfied sourceRichard Gibson2018-09-071-14/+28
| | | Closes gh-4128
* Traversing: $.fn.contents() support for objectLuis Emilio Velasco Sanchez2018-05-142-0/+15
| | | | | Fixes gh-4045 Closes gh-4046
* CSS: Correctly detect scrollbox support with non-default zoomRichard Gibson2018-05-071-1/+5
| | | | Fixes gh-4029 Closes gh-4030
* Tests: ensure that module assertions run on supported browsersTimmy Willison2018-01-162-1/+11
| | | | | | - Also fixes tests for karma, where the URL for the module is different Ref gh-3871
* Manipulation: Add support for scripts with module typebasil.belokon2018-01-162-0/+2
| | | | | Fixes gh-3871 Close gh-3869
* Core: deprecate jQuery.isFunctionJason Bedard2018-01-151-2/+2
| | | | Fixes gh-3609
* Tests: Add support for running unit tests via grunt with karmaTimo Tijhof2017-12-1837-242/+530
| | | | | | | | | | | | | - 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
* CSS: Correctly set support properties with non-default zoomSaptak Sengupta2017-12-051-0/+26
| | | | Fixes gh-3808 Closes gh-3872
* Tests: Reduce the abort timeout for simple focus testingRichard Gibson2017-07-191-1/+1
| | | | Ref gh-3732
* Tests: Revert some testIframe changes to fix dimensions testsRichard Gibson2017-04-291-7/+2
| | | | Ref c0edd8dc18e02999a25768a4946093b015045f80
* Revert "Tests: Revert some testIframe changes to fix dimensions tests"Richard Gibson2017-04-291-2/+7
| | | | This reverts commit c4368a93116e9d1d17587fc2f5421a891957cf45.
* Tests: Revert some testIframe changes to fix dimensions testsRichard Gibson2017-04-291-7/+2
| | | | Ref c0edd8dc18e02999a25768a4946093b015045f80
* Tests: Clean up offset debuggingRichard Gibson2017-04-291-7/+1
| | | | | Ref 1d2df772b4d6e5dbf91df6e75f4a1809f7879ab0 Ref c0edd8dc18e02999a25768a4946093b015045f80
* Tests: Adjust by actual scroll position, rather than expectedRichard Gibson2017-04-291-1/+1
| | | | Ref 1d2df772b4d6e5dbf91df6e75f4a1809f7879ab0
* Tests: Keep iframes visible in TestSwarmRichard Gibson2017-04-281-2/+13
| | | | Ref 1d2df772b4d6e5dbf91df6e75f4a1809f7879ab0
* Tests: Prepend test iframes for even *more* consistencyRichard Gibson2017-04-251-1/+1
| | | | Ref 1d2df772b4d6e5dbf91df6e75f4a1809f7879ab0
* Tests: Allow a mock QUnit.test for perfect testIframe fidelityRichard Gibson2017-04-251-2/+5
| | | | Ref 1d2df772b4d6e5dbf91df6e75f4a1809f7879ab0 Closes gh-3647
* Tests: Attach test iframes to the body for visibility-dependent codeRichard Gibson2017-04-252-6/+12
| | | | Ref 1d2df772b4d6e5dbf91df6e75f4a1809f7879ab0 Closes gh-3645
* Tests: Be even more async for iOSRichard Gibson2017-04-241-1/+1
| | | | Ref 1d2df772b4d6e5dbf91df6e75f4a1809f7879ab0 Closes gh-3643
* Tests: Improve offset test setup and labelsRichard Gibson2017-04-242-1/+1
| | | | | | 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-0/+99
| | | | | | | | Thanks @anseki Fixes gh-3080 Fixes gh-3107 Closes gh-3096 Closes gh-3487
* Tests: move readywait to an iframe testSteve Mao2017-03-203-26/+76
| | | | | Close gh-3576 Fixes gh-3573
* Core: Deprecate jQuery.isArrayManoj Kumar2016-11-302-2/+2
| | | | | Fixes gh-2961 Closes gh-3278
* Core: rnotwhite -> rhtmlnotwhite and jQuery.trim -> stripAndCollapseTimmy Willison2016-09-151-0/+1
| | | | | | | | | | | | - Renames and changes rnotwhite to focus on HTML whitespace chars - Change internal use of jQuery.trim to more accurate strip and collapse - Adds tests to ensure HTML space characters are retained where valid - Doesn't add tests where the difference is inconsequential and existing tests are adequate. Fixes gh-3003 Fixes gh-3072 Close gh-3316
* Core: expose noConflict in AMD modeTimmy Willison2016-08-151-3/+1
| | | | | | | | - For compability reasons, we had already added the global in AMD mode, but without noConflict. This adds back noConflict to AMD (which fixes noConflict mode in the tests). Fixes gh-2930
* Build: ESLint detailsOleg Gaidarenko2016-06-111-29/+28
| | | | | | Use eslint pragmas, fix new errors, etc Closes gh-3148
* CSS: Remove units from a 0 width/height elementChristophe Tafani-Dereeper2016-05-161-2/+2
| | | | Close gh-3122
* Tests: Refactor testIframe() to make it DRYer and more consistentDave Methvin2016-04-1131-48/+72
| | | | | Ref gh-3040 Closes gh-3049
* Tests: Make iframe tests wait after checking isReadyDave Methvin2016-04-1111-31/+21
| | | | Ref gh-3040
* Tests: do not run IE9 effect tests if inside testswarmOleg Gaidarenko2016-04-041-4/+5
| | | | | | | | That test doesn't work properly in such environment Ref e04e246552c27e872bbf4ae00b55def02b197189 Fixes gh-2888 Closes gh-3034
* Docs:Tests: Remove legacy code & add support comments where neededMichał Gołębiowski2016-03-301-1/+0
| | | | | | | | This commits backports some changes done in the patch to the then-existing compat branch that removed support for old browsers and added some support comments. Refs 90d7cc1d8b2ea7ac75f0eacb42439349c9c73278
* Tests: Restrict "p > * > *" selection in selector.js to #qunit-fixtureAlexander Lisianoi2016-03-091-8/+32
| | | | | | | | Add `match` and `QUnit.assert.selectInFixture` functions that mimic `QUnit.assert.t`. Ref gh-2880 Closes gh-2973
* Tests: test element position outside viewOleg Gaidarenko2016-02-111-0/+12
| | | | | | | Ref 49833f7795d665ff1d543c4f71f29fca95b567e9 Ref gh-2828 Ref gh-2836 Fixes gh-2909
* CSS: Restore cascade-override behavior in .showRichard Gibson2016-01-131-9/+5
| | | | | | | Fixes gh-2654 Fixes gh-2308 Close gh-2810 Ref 86419b10bfa5e3b71a7d416288ab806d47a31d1f
* Manipulation: execute scripts from iframe in the iframe's contextTimmy Willison2015-11-091-0/+18
| | | | | Fixes gh-1757 Close gh-2696
* Event: Make event aliases optional in unit testsDave Methvin2015-11-061-1/+1
|
* Core: use interactive to evaluate dom ready, barring IE9-10Timmy Willison2015-10-291-0/+23
| | | | Fixes gh-2100
* CSS: Correct misrepresentation of "auto" horizontal margins as 0Richard Gibson2015-10-181-1/+2
| | | | | | | | | | | | Fixes gh-2237 Closes gh-2276 (cherry picked from commit 214e1634ab9b1d13d53647dd5de3bdf7a091d49c) Conflicts: src/css.js src/css/support.js test/unit/support.js