Commit 0f5292b9 authored by Jörn Zaefferer's avatar Jörn Zaefferer

Added test for sync requests with callbacks (#534)

parent 30f70802
...@@ -43,6 +43,12 @@ test("synchronous request", function() { ...@@ -43,6 +43,12 @@ test("synchronous request", function() {
ok( /^{ "data"/.test( $.ajax({url: "data/json.php", async: false}).responseText ), "check returned text" ); 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() { test("load(String, Object, Function) - simple: inject text into DOM", function() {
expect(2); expect(2);
stop(); stop();
......
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