Commit eb5aab99 authored by jaubourg's avatar jaubourg

Places multiple signature test after all primary callbacks tests.

parent af70dee8
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment