Commit Graph

203 Commits

Author SHA1 Message Date
Richard Gibson
5b9bf13439 No ticket: improve global variable/ajax request tracking 2012-12-02 23:32:16 -05:00
Dave Methvin
27c9360a1b Don't really want to expect any global events here. 2012-12-02 10:53:34 -05:00
Dave Methvin
b5acda7af2 Followup to #12989 fix, improve unit test resiliency. 2012-12-02 10:48:26 -05:00
Dave Methvin
c2d6847de0 Fix #12989. Remove ajax "global" event behavior. 2012-12-01 20:29:32 -05:00
jaubourg
6378a19c46 Unit test for #12004 2012-11-29 00:15:17 +01:00
jaubourg
e679f6c2db Use strictEqual rather than equal 2012-11-27 02:38:20 +01:00
jaubourg
512b826f9f Removes unnecessary closure and apply 2012-11-26 12:09:42 +01:00
jaubourg
d31cef38f2 Total revamping of the ajax unit tests 2012-11-26 03:31:19 +01:00
Richard Gibson
517846aad2 No ticket: speedup test suite. Close gh-1020. 2012-11-08 10:10:43 -05:00
Richard Gibson
81b094b2c1 No ticket: update test suite to pass QUnit globals check in most environments. Close gh-1016. 2012-11-05 17:24:03 -05:00
Richard Gibson
3f51504580 No ticket: remove test suite external dependencies 2012-11-01 17:32:08 -04:00
James Huston
ee9687d441 Fix #12751. Ensure parseJson throws in the same situations as JSON.parse. Close gh-993. 2012-10-17 16:28:55 -04:00
Ben Truyman
ce5784a480 Handle a falsy URL in the settings object for jQuery.ajax. Fixes #10093, Closes gh-979 2012-10-16 11:37:15 -04:00
Mike Sherov
ed9e34482a enforce double quotes via JSHint. Closes gh-975 2012-10-16 10:17:14 -04:00
jaubourg
6ba563887a fixes problematic JSONP test (gotta learn to count) 2012-10-16 10:03:17 -04:00
jaubourg
7d2e99fb64 comments out some problematic JSONP test until we figure out what the problem is 2012-10-16 09:39:33 -04:00
Rick Waldron
d6c84c5bb5 Breakout JSONP domain-related tests 2012-10-15 17:11:21 -04:00
Rick Waldron
a0cbf60192 Split failing cross domain tests into two separate test bodies.
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
2012-10-15 16:00:50 -04:00
Erick Ruiz
be1f1d7b5b Fixing style for test unit ajax.js. https://github.com/jquery/2012-dev-summit/issues/56 2012-10-15 15:53:39 -04:00
James Huston
b36d58d4e8 Enforce expects in ajax.js (https://github.com/jquery/2012-dev-summit/issues/53) Closes gh-964 2012-10-15 12:37:02 -04:00
Richard Gibson
da3ff3afe4 Fix #12637: restore 1.8.1 ajax crossDomain logic. Close gh-944. 2012-10-03 21:07:50 -04:00
Dave Methvin
ebf4d43011 Revert "Chrome fails in ajax.js tests because TestSwarm/Ngnix won't give HEAD requests any respect. Skip them rather than hear Swarmy call FAILURE on each run."
This reverts commit 9c5089a60d.

These were not the droids we were looking for. Actually caused by a BrowserStack issue.
2012-09-30 22:23:02 -04:00
Dave Methvin
9c5089a60d Chrome fails in ajax.js tests because TestSwarm/Ngnix won't give HEAD requests any respect. Skip them rather than hear Swarmy call FAILURE on each run. 2012-09-11 15:42:10 -04:00
Dave Methvin
05337e78fa Revert "Fix #11586. Ajax DELETE ain't got no body, so data goes to its URL."
This reverts commit c01e022f33.

We actually changed DELETE to accept a body on purpose, see http://bugs.jquery.com/ticket/7285 .
2012-08-24 11:59:01 -04:00
Dave Methvin
c01e022f33 Fix #11586. Ajax DELETE ain't got no body, so data goes to its URL. 2012-08-23 21:33:29 -04:00
jaubourg
b292c4c2df Calling load with null as the data parameter now properly issues a GET request, not a POST request. Unit tests added. Fixes #12234. 2012-08-16 16:45:18 +02:00
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