Skip to content
Permalink
Browse files
Added test for sync requests with callbacks (#534)
  • Loading branch information
jzaefferer committed Dec 21, 2006
1 parent 30f7080 commit 0f5292b
Showing 1 changed file 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();

0 comments on commit 0f5292b

Please sign in to comment.