aboutsummaryrefslogtreecommitdiffstats
path: root/test/unit/ajax.js
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* Ajax: Always use script injection in globalEvalOleg Gaidarenko2014-06-161-9/+1
| | | | | Fixes #14757 Closes gh-1449
* Ajax: Support usage without jQuery.eventTJ VanToll2014-06-021-0/+16
| | | | | Fixes #15118 Closes gh-1588
* Ajax, Manipulation: don't test cross-document manip in Android 2.3Michał Gołębiowski2014-05-051-0/+6
|
* Tests: Fix failing ajax tests in oldIEOleg Gaidarenko2014-04-151-9/+13
| | | | | | (cherry-picked from the 71780965072b1271018f2cf360e82fbe31f4987e) Picked up so tests from the 1.x-master would be more similar to this branch
* Tests: Improve jsonp testsOleg Gaidarenko2014-04-151-2/+2
| | | | | Since global variable for callback always would be equal to undefined value it better to check for boolean instead
* Ajax, Effects: Disable Chrome 31 workaroundsMichał Gołębiowski2014-03-101-11/+4
|
* Ajax: .load() should trim its selectorDave Methvin2014-03-041-0/+8
| | | | Fixes #14773
* Ajax: Protect against exceptions thrown synchronously by xhr.sendjaubourg2014-01-291-0/+30
| | | | | | | | | | | When xhr.send throws an exception synchronously, the onerror handler may have been called already which, unchecked, makes the exception bubble up outside of jQuery.ajax. We now catch the exception pre-emptively and only rethrow if we know it hasn't already been notified through the onerror handler. Fixes #14683