Dave Methvin
bc07ae8c1d
Loosen the ajax statusText check so Safari AND Chrome pass.
2012-07-25 14:31:21 -04:00
jaubourg
ced5e9037a
Extracts the serialization code from the ajax module so that alternative ajax implementations can use it without the need for the whole ajax module to be included in the build.
2012-07-13 09:47:43 +02:00
Chad Killingsworth
de9bed319e
Make unit tests friendly to Closure Compiler. Closes gh-845.
...
Conflicts:
test/unit/effects.js
test/unit/offset.js
2012-07-05 15:52:42 -04:00
Rick Waldron
a2758377df
Adds src/deprecated.js, test/unit/deprecated.js; -deprecated flag; Moves jQuery.browser and removes use in test/unit/ajax.js. Fixes #11965
2012-06-25 10:02:28 -04:00
Rick Waldron
7ff3da186c
Unit tests are linted and passing.
2012-06-21 15:30:24 -04:00
jaubourg
ac48a19b92
Some work to modularize ajax later on.
2012-06-11 14:00:16 +02:00
Richard Gibson
742872984e
Fix #11743 : Don't mask script errors in jQuery.ajax, closes gh-795.
2012-05-31 08:31:13 -07:00
Trey Hunner
f1dcaad097
Fix indentation in /speed and /test dirs, closes gh-780.
2012-05-18 13:28:50 -04:00
jaubourg
a743be19bd
Fixes #11402 . domManip now also removes the closing part of HTML comments or CDATA surrounding executed scripts. Unit tests added.
2012-05-06 01:27:01 +02:00
jaubourg
d3e034f6c7
Adds unit test to show order of parameters in the load callback are off for errors since the rewrite (this test works in master).
2012-05-02 02:22:56 +02:00
jaubourg
ae6b14abaf
Makes test message more meaningful.
2012-05-02 02:15:09 +02:00
Oleg
6bed348a00
jQuery.ajaxSetup() data is merged with params. Fixes #10524
2012-05-01 14:39:45 -04:00
jaubourg
8ebb2f4793
Fixes #8205 . Mitigates memory usage by recycling jsonp callback names the safest possible way (no kittens were harmed in the making of this). Doesn't even try to delete window properties (would necessitate a try/catch for IE which makes the cost in size prohibitive). Unit tests added.
2012-04-20 03:02:20 +02:00
tsinha
36d2d9ae93
Fix #8653 , .param() undefined/null values become empty strings
2012-04-05 11:06:54 -04:00
jaubourg
914df9cb42
For much improved consistency, jqXHR.abort() sets a default statusText of 'canceled' right until after beforeSend has been called (in which case it reverts to the default of 'abort'): now all early aborts have a statusText of 'canceled'.
2012-04-02 02:04:46 +02:00
jaubourg
395612bb15
$.ajax now always returns an object implementing the Promise interface. Fixes #10944 . Unit tests amended.
...
For back-compat, in case of an early abort, callbacks passed in the options are not called (while subsequent callbacks attached to the returned Promise are).
For early abort triggered by returning false in beforeSend, statusText is "canceled".
2012-04-02 01:54:19 +02:00
jaubourg
c5712a24bd
Prevents firefox from hanging on the test (could it be that firefox passes the delay to start?).
2012-03-07 17:55:07 +01:00
jaubourg
d3fad51cad
Fixes #11264 or rather seriously limits the risk of global ajaxSettings screwing with script loading in domManip. Gotta love globals and sneaky dependencies. Unit test added.
2012-03-07 16:54:05 +01:00
jaubourg
484cea1b56
Fixes #11426 : getting the responseText of an xhr should be tried/caught because of IE's inability to give access to binary data. Unit test added.
2012-03-07 15:39:39 +01:00
Dave Methvin
8013163a36
Fix frequent Firefox failures -- force longer timeouts.
2012-03-02 21:54:08 -05:00
Mike Sherov
7226cf2800
fixes #10901 , PHP required for unit tests, but still allow the tests to run
2012-02-16 23:17:57 -05:00
Rick Waldron
d828996478
Fix #10978 : Let jQuery.param() accept non-native constructed objects.
2012-01-12 20:14:51 -05:00
Rick Waldron
166b9d252a
Fix #10466 . jQuery.param() should treat object-wrapped primitives as primitives.
2011-12-06 16:02:54 -05:00
Dave Methvin
c3600e261b
Take 2 on "Fix ajax to always expect an Error object, per #10646."
...
We can't use jQuery.error to rethrow anymore since it constructs a new Error from its supposedly-string arg. Also, older IE stringifies Error objects into "[object Error]" so I've loosened the unit test criteria.
This reverts commit 586fb05919
.
2011-11-08 15:52:30 -05:00
timmywil
f8eba6ee25
Comment out an ajax test that exposed a bug in Opera, to appease testswarm.
2011-11-07 21:33:03 -05:00
Mike Sherov
f35ba5e699
Fix #10691 . Remove all instances of equals() and same(), as these are deprecated in QUnit.
2011-11-06 15:27:42 -05:00
jaubourg
3e0fe5ea3b
We have too many unctions in this function.
2011-10-02 09:50:09 -04:00
Corey Frang
46219b57ba
Landing pull request 525. Fixing tests with qunit.
...
More Details:
- https://github.com/jquery/jquery/pull/525
2011-10-01 16:49:49 -04:00
jaubourg
6eb75676c4
Fixes a weird IE7 bug in the unit tests. If anybody can shed some light on this one, I'm a taker.
2011-09-22 09:35:57 +02:00
jaubourg
f37fc9966e
Considers Safari XMLHttpRequest's bug when testing for custom status text. Will have to be revisited when $.browser.chrome is introduced.
2011-08-27 01:54:12 +02:00
jaubourg
0ed99097bd
Fixes #9854 : propagates native statusText onto jqXHR.statusText. statusText in callbacks is still normalized. Unit test added.
2011-07-23 02:39:12 +02:00
jaubourg
e6a99fdb0e
Fixes #9887 : ajax now supports circular references into objects passed as context. Prefilter and transport developpers should add their own custom option into flatOptions when needed. Unit test added.
2011-07-23 02:10:17 +02:00
jaubourg
e83fcdcb02
Fixes #9682 . Removes data from the options for request with no content so that it is not used again in case of a retry. Unit test added.
2011-07-01 02:11:26 +02:00
timmywil
ecf6a3c383
Switch QUnit div from depreceted #main to #qunit-fixture
2011-04-17 02:43:57 -04:00
John Resig
ce7b311b92
Backing out fix for #6481 .
2011-04-16 09:12:53 -07:00
louisremi
11adde5127
second batch
2011-04-11 22:33:29 +02:00
Dan Heberden
a7e7dbd978
Bug 7587; Enhancement/1.6 Feature: Bypass regexp filter on $.parseJSON and use native thrown exceptions if window.JSON.parse is available
2011-04-05 01:43:14 -07:00
jaubourg
714ae379db
Fixes #8509 . Makes URL regexp less overzealous and ensures it recognizes URL schemes which do not contain a conformant hierarchical structure ( as per section 2.1.2 of http://www.ietf.org/rfc/rfc2718.txt ). Also adds about: and adobe air's app: and app-storage: to the list of local protocols and provides a failover in case document.location is illformed. Unit test added.
2011-03-15 19:20:03 +01:00
gnarf
71bd828d9f
Grouped up the test
2011-02-24 13:21:05 -06:00
gnarf
14e9da51f9
A quick change to detect AIR urls
2011-02-24 13:10:33 -06:00
jaubourg
5b38439011
Fixes #8297 . Makes sure response headers with empty values are handled properly and do not prevent proper parsing of the entire response headers string. Unit test amended.
2011-02-17 17:03:09 +01:00
jaubourg
1ddfdabbb9
Fixes #8277 . Sets data to undefined rather than null when it is not provided in ajax helpers so that it won't revent data set in ajaxSettings from being used. Unit test added.
2011-02-15 21:53:38 +01:00
Anton M
481d940e79
Remove duplicate test.
2011-02-11 11:59:42 +01:00
jaubourg
f6e173437e
Fixes #8219 . Introduces the mimeType option to override content-type header in conversion (and in native xhr when possible). Adds companion overrideMimeType method on jqXHR object (it simply sets the option). Unit test added.
2011-02-09 17:47:33 +01:00
jaubourg
a2dbdc1f54
Fixes a bug that prevented headers from being set in an ajaxSend callback. Unit test modified.
2011-02-07 16:35:32 +01:00
jaubourg
2c77704b14
Fixes a typo in the title of the load() unit test.
2011-02-05 03:06:21 +01:00
Anton M
08fcde6a59
Remove an invalid ajax test and some code that is no longer used by any test.
2011-02-05 00:20:23 +01:00
jaubourg
03bad0a960
Fixes abort in prefilter. No global event will be fired in that case even if the global option is set to true. Unit test added.
2011-02-04 22:19:23 +01:00
Anton Kovalyov
fdd4101fe9
Fixes #7945 . Make jQuery.param() serialize plain objects with a property named jquery correctly.
2011-02-02 00:32:29 +01:00
jaubourg
cb49b4a1b6
Fixes #8115 . Renames all references to jXHR with jqXHR in the code (like was done in the doc).
2011-02-01 16:00:53 +01:00