aboutsummaryrefslogtreecommitdiffstats
path: root/test/data
Commit message (Collapse)AuthorAgeFilesLines
* Docs: Update most URLs to HTTPSMichał Gołębiowski-Owczarek2019-10-214-10/+10
| | | Closes gh-4511
* Tests: Stop using jQuery.find in testsMichał Gołębiowski-Owczarek2019-10-211-1/+1
| | | | | This prepares us for possibly hiding jQuery.find in jQuery 4.0. Closes gh-4517
* Ajax: Do not execute scripts for unsuccessful HTTP responsesSean Robinson2019-09-261-0/+13
| | | | | | | | | The script transport used to evaluate fetched script sources which is undesirable for unsuccessful HTTP responses. This is different to other data types where such a convention was fine (e.g. in case of JSON). Fixes gh-4250 Closes gh-4379
* Tests: Fix a comment in testinit.jsMichał Gołębiowski-Owczarek2019-08-191-1/+0
| | | | | | | A copied comment line was accidentally left out above the line defining `QUnit.jQuerySelectorsPos`, making the sentence nonsense. This commit removes that line. Closes gh-4458
* Selector: Inline Sizzle into the selector moduleMichał Gołębiowski-Owczarek2019-07-293-5/+16
| | | | | | | | | | | | | | | | | | This commit removes Sizzle from jQuery, inlining its code & removing obsolete workarounds where applicable. The selector-native module has been removed. Further work on the selector module may decrease the size enough that it will no longer be necessary. If it turns out it's still useful, we'll reinstate it but the code will look different anyway as we'll want to share as much code as possible with the existing selector module. The Sizzle AUTHORS.txt file has been merged with the jQuery one - people are sorted by their first contributions to either of the two repositories. The commit reduces the gzipped jQuery size by 1460 bytes compared to master. Closes gh-4395
* Selector: Port Sizzle tests to jQueryMichał Gołębiowski-Owczarek2019-06-264-15/+129
| | | | | | | Apart from porting most Sizzle tests to jQuery (mostly to its selector module), this commit fixes selector-native so that a jQuery custom compilation that excludes Sizzle passes all tests as well. Closes gh-4406
* Core: Remove IE-specific support tests, rely on document.documentModeMichał Gołębiowski-Owczarek2019-05-134-10/+10
| | | | | | | Also, update some tests to IE-sniff when deciding whether to skip a test. Fixes gh-4386 Closes gh-4387
* Core: Drop support for IE <11, iOS <11, Firefox <65, Android Browser & PhantomJSMichał Gołębiowski-Owczarek2019-04-293-63/+8
| | | | | | | | | | | 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
* Tests: Fix the core-js polyfill inclusion methodMichał Gołębiowski-Owczarek2019-04-041-1/+1
| | | | | | | | core-js 3 no longer includes a built file in the bundle but core-js-bundle does. Closes gh-4342 Ref gh-4341
* 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