Added test for sync requests with callbacks (#534)
This commit is contained in:
parent
30f708027f
commit
0f5292b991
1 changed files with 6 additions and 0 deletions
|
@ -43,6 +43,12 @@ test("synchronous request", function() {
|
|||
ok( /^{ "data"/.test( $.ajax({url: "data/json.php", async: false}).responseText ), "check returned text" );
|
||||
});
|
||||
|
||||
test("synchronous request with callbacks", function() {
|
||||
var result;
|
||||
$.ajax({url: "data/json.php", async: false, success: function(data) { result = data; }});
|
||||
ok( /^{ "data"/.test( result ), "check returned text" );
|
||||
});
|
||||
|
||||
test("load(String, Object, Function) - simple: inject text into DOM", function() {
|
||||
expect(2);
|
||||
stop();
|
||||
|
|
Loading…
Reference in a new issue