aboutsummaryrefslogtreecommitdiffstats
path: root/test/unit
diff options
context:
space:
mode:
authorjaubourg <j@ubourg.net>2011-02-01 09:30:52 +0100
committerjaubourg <j@ubourg.net>2011-02-01 09:30:52 +0100
commiteb5aab99525ede9f8609fbfc741c6337cf2d5061 (patch)
treeb25bed5c1c1d19a0327749f00e75079cc9916980 /test/unit
parentaf70dee88e374d27dd8c0c8ec18af5c89541d4c9 (diff)
downloadjquery-eb5aab99525ede9f8609fbfc741c6337cf2d5061.tar.gz
jquery-eb5aab99525ede9f8609fbfc741c6337cf2d5061.zip
Places multiple signature test after all primary callbacks tests.
Diffstat (limited to 'test/unit')
-rw-r--r--test/unit/ajax.js30
1 files changed, 15 insertions, 15 deletions
diff --git a/test/unit/ajax.js b/test/unit/ajax.js
index ad14d0a98..b51419d97 100644
--- a/test/unit/ajax.js
+++ b/test/unit/ajax.js
@@ -38,21 +38,6 @@ test("jQuery.ajax() - success callbacks", function() {
});
});
-test( "jQuery.ajax - multiple method signatures introduced in 1.5 ( #8107)", function() {
-
- expect( 4 );
-
- stop();
-
- jQuery.when(
- jQuery.ajax().success(function() { ok( true, 'With no arguments' ); }),
- jQuery.ajax('data/name.html').success(function() { ok( true, 'With only string URL argument' ); }),
- jQuery.ajax('data/name.html', {} ).success(function() { ok( true, 'With string URL param and map' ); }),
- jQuery.ajax({ url: 'data/name.html'} ).success(function() { ok( true, 'With only map' ); })
- ).then( start, start );
-
-});
-
test("jQuery.ajax() - success callbacks - (url, options) syntax", function() {
expect( 8 );
@@ -255,6 +240,21 @@ test("jQuery.ajax() - error callbacks", function() {
});
});
+test( "jQuery.ajax - multiple method signatures introduced in 1.5 ( #8107)", function() {
+
+ expect( 4 );
+
+ stop();
+
+ jQuery.when(
+ jQuery.ajax().success(function() { ok( true, 'With no arguments' ); }),
+ jQuery.ajax('data/name.html').success(function() { ok( true, 'With only string URL argument' ); }),
+ jQuery.ajax('data/name.html', {} ).success(function() { ok( true, 'With string URL param and map' ); }),
+ jQuery.ajax({ url: 'data/name.html'} ).success(function() { ok( true, 'With only map' ); })
+ ).then( start, start );
+
+});
+
test("jQuery.ajax() - textStatus and errorThrown values", function() {
var nb = 2;