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 0f5292b991ee83ee956766d6a7eab75445dd4dea
Showing with 6 additions and 0 deletions.
  1. +6 −0 src/ajax/ajaxTest.js
@@ -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.