equal
deleted
inserted
replaced
23 |
23 |
24 var spy_callback = this.spy(); |
24 var spy_callback = this.spy(); |
25 var dt = new IriSP.DataLoader(); |
25 var dt = new IriSP.DataLoader(); |
26 |
26 |
27 var resp = dt.get("/url", spy_callback); |
27 var resp = dt.get("/url", spy_callback); |
28 //IriSP.jQuery.get("/url", spy_callback); |
28 |
29 equals(xhr.requests.length, 1, "the mock ajax object should have received the request"); |
29 equals(xhr.requests.length, 1, "the mock ajax object should have received the request"); |
30 |
30 |
31 xhr.requests[0].respond(200, { "Content-Type": "application/json" }, |
31 xhr.requests[0].respond(200, { "Content-Type": "application/json" }, |
32 response_string); |
32 response_string); |
33 |
33 |