aboutsummaryrefslogtreecommitdiffstats
path: root/test/unit/ajax.js
Commit message (Collapse)AuthorAgeFilesLines
* Docs: Update most URLs to HTTPSMichał Gołębiowski-Owczarek2019-10-211-4/+4
| | | Closes gh-4511
* Ajax: Do not execute scripts for unsuccessful HTTP responsesSean Robinson2019-09-261-0/+115
| | | | | | | | | 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
* Core: Remove IE-specific support tests, rely on document.documentModeMichał Gołębiowski-Owczarek2019-05-131-12/+7
| | | | | | | 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-291-64/+38
| | | | | | | | | | | 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: Make Android Browser 4.0-4.3 AJAX tests greenMichał Gołębiowski-Owczarek2019-03-271-1/+9
| | | | | | | Android Browser versions provided by BrowserStack fail the "prototype collision (constructor)" test while locally fired emulators don't, even when they connect to TestSwarm. Just skip the test there to avoid a red build. Closes gh-4334
* Build: Update test code for compatibility with QUnit 2.x (#4297)abnud12019-02-181-68/+127
| | | | | | | | 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: Exclude Android 4.x from repeated header names testMichał Gołębiowski-Owczarek2018-12-141-1/+11
| | | | | | | | Android Browser only returns the last value for each header so there's no way for jQuery get all parts. Closes gh-4259 Ref gh-3403 Ref gh-4173
* Ajax: Fix getResponseHeader(key) for IE11Andrei Fangli2018-11-261-1/+4
| | | | | | | | | | | - 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-11/+30
| | | Closes gh-4128
* squash! Set attributes all at once, src lastDave Methvin2018-05-141-5/+3
|
* Ajax: Allow custom attributes when script transport is usedDave Methvin2018-05-141-0/+23
| | | | | | | Fixes gh-3028 Ref gh-2612 Useful, for example, to add `nonce`, `integrity`, or `crossorigin`.
* Tests: Disable native abort test in Android 4.0Michał Gołębiowski-Owczarek2018-02-121-18/+20
| | | | | | The test works on its own when checked manually but mysteriously fails in TestSwarm only in Android 4.0. Let's just disable it there. Closes gh-3968
* Core: deprecate jQuery.typeJason Bedard2018-01-161-1/+1
| | | | | Fixes gh-3605 Close gh-3895
* Ajax: Don't process non-string data property on no-entity-body requestsDave Methvin2018-01-151-1/+32
| | | | | Fixes gh-3438 Closes gh-3781
* Tests: only run ontimeout test if ontimeout existsTimmy Willison2018-01-081-16/+20
| | | | | Fixes gh-3742 Close gh-3919
* Ajax: add unit test for getScript(Object)Timmy Willison2018-01-081-0/+18
| | | | | Fixes gh-3736 Close gh-3918
* Tests: Add support for running unit tests via grunt with karmaTimo Tijhof2017-12-181-179/+171
| | | | | | | | | | | | | - 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
* Ajax: add an ontimeout handler to all requestsErik Lax2017-07-241-0/+17
| | | | | Fixes gh-3586 Close gh-3590
* Docs:Tests: Update IE/Edge-related support comments & testsMichał Gołębiowski2017-05-151-1/+1
| | | Closes gh-3661
* Core: rnotwhite -> rhtmlnotwhite and jQuery.trim -> stripAndCollapseTimmy Willison2016-09-151-0/+11
| | | | | | | | | | | | - 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
* Ajax: Don't mangle the URL when removing the anti-cache paramDave Methvin2016-08-081-9/+19
| | | | | Fixes gh-3229 Closes gh-3253
* Build: ESLint detailsOleg Gaidarenko2016-06-111-4/+4
| | | | | | Use eslint pragmas, fix new errors, etc Closes gh-3148
* Ajax: Ensure ajaxSettings.traditional is still honoredDave Methvin2016-04-271-0/+58
| | | | | | | | Fixes gh-3023 Closes gh-3081 Since .param() no longer looks at this setting we need unit tests to ensure it is still honored by $.ajax().
* Tests: Refactor testIframe() to make it DRYer and more consistentDave Methvin2016-04-111-3/+3
| | | | | Ref gh-3040 Closes gh-3049
* Ajax: execute jQuery#load callback with correct contextOleg Gaidarenko2016-04-041-0/+19
| | | | | | | Thanks @blq (Fredrik Blomqvist) Fixes gh-3035 Close gh-3039
* Docs:Tests: Remove obsolete code from tests, update support commentsMichał Gołębiowski2016-03-081-19/+1
| | | | | | | | | | 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
* Core: Deprecate jQuery.parseJSONMichał Gołębiowski2016-03-021-1/+1
| | | | | Fixes gh-2800 Closes gh-2948
* Docs: Fix various spelling errorsJosh Soref2016-01-131-1/+1
| | | | Closes gh-2761
* Ajax: Preserve URL hash on requestsDave Methvin2015-11-301-4/+18
| | | | | Fixes gh-1732 Closes gh-2721
* Ajax: Don't throw exceptions on binary data responseDave Methvin2015-11-041-0/+24
| | | | | | | | | Fixes gh-2498 Closes gh-2682 The added unit test shows how this could be used to support an ArrayBuffer return, but $.ajax does not support it natively. The goal with this change was to avoid the exception.
* Ajax: trigger error callback on native abortTimmy Willison2015-11-031-1/+20
| | | | | | | - IE9 does not have onabort. Use onreadystatechange instead. Fixes gh-2079 Close gh-2684
* Ajax: Only form-encode requests with a bodyDave Methvin2015-11-021-0/+42
| | | | | Fixes #2658 Closes #2671
* Tests: Use standard external domain nameRichard Gibson2015-10-231-1/+1
| | | | | | Ref 01c360f96390ff16edfe65ef3b34e167087ef645 (cherry picked from commit 36806891657b0a3b7c4a12d9698f2ebf552fd712)
* Ajax: don't expect cross-origin tests run in envs which not support itOleg Gaidarenko2015-10-131-31/+20
| | | | Follow-up to b078a62013782c7424a4a61a240c23c4c0b42614
* Ajax: improve content-type detectionOleg Gaidarenko2015-10-121-1/+103
| | | | | Fixes gh-2584 Closes gh-2643
* Ajax: Mitigate possible XSS vulnerabilityOleg Gaidarenko2015-10-121-0/+48
| | | | | | | Proposed by @jaubourg Fixes gh-2432 Closes gh-2588
* Tests: further improvements QUnit 2.0 migrationOleg Gaidarenko2015-09-081-30/+44
| | | | | | | | * Remove QUnit jshint globals * Extend QUnit.assert methods * Use assert.async instead of start/stop/done Ref b930d14ce64937e9478405eee2828d4da091d2cb
* Build: Update jscs and lint filesOleg Gaidarenko2015-09-071-467/+471
| | | | Fixes gh-2056
* Tests: partially use new qunit interfaceOleg Gaidarenko2015-08-161-1112/+1250
| | | | | | | | | | | | 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
* Tests: don't use deprecated argument in test declarationOleg Gaidarenko2015-07-301-5/+15
| | | | Closes gh-2507
* Ajax: Account for Android 2.3 not firing window.onerror on script errorsMichał Gołębiowski2015-07-281-0/+9
| | | | | | | | | | Android 2.3 doesn't fire the window.onerror handler, just accept the reality there and skip the test. Refs gh-1573 Refs gh-1786 Refs jquery/jquery.com#108 Closes gh-2458
* Ajax: Remove jsonp callbacks through "jQuery#removeProp" methodOleg Gaidarenko2015-07-131-11/+21
| | | | | Fixes gh-2323 Closes gh-2464
* Ajax: remove deprecated extensions from ajax promiseOleg Gaidarenko2015-02-171-6/+6
| | | | | Fixes gh-2084 Closes gh-2092
* 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
* Ajax: $.post and $.get can now take an options objectGeorge Mauer2015-01-111-0/+20
| | | | | Fixes gh-1986 Closes gh-1995
* Ajax: Fix cross-domain detection test for non-default portVictor Homyakov2015-01-061-1/+1
| | | | Closes gh-1954
* Ajax: use anchor tag for parsing urlsBen Toews2014-12-111-1/+5
| | | | | Fixes gh-1875 Closes gh-1880
* Misc: Drop support for older browsers; update support commentsMichał Gołębiowski2014-11-031-12/+3
| | | | | | | | That includes Opera 12.x, Firefox<29, Safari<6.0 and some hacks for old Blackberry. Closes gh-1820 Refs gh-1815
* Ajax: Fix for request aborted in ajaxSendDan Hart2014-11-011-0/+17
| | | | | Fixes gh-1775 Close gh-1619
* Build: Move test to appropriate moduleOleg Gaidarenko2014-06-161-0/+4
|