aboutsummaryrefslogtreecommitdiffstats
path: root/test/localfile.html
diff options
context:
space:
mode:
authorjaubourg <j@ubourg.net>2012-12-04 07:39:27 +0100
committerjaubourg <j@ubourg.net>2012-12-04 07:40:12 +0100
commit228ab3ddae527f72cc3122a1c6115d7718bcfd57 (patch)
tree258539e5faade401feb4d54578f02584195705b9 /test/localfile.html
parent3ab26340dcdf001da4e93df2f187a8343615673c (diff)
downloadjquery-228ab3ddae527f72cc3122a1c6115d7718bcfd57.tar.gz
jquery-228ab3ddae527f72cc3122a1c6115d7718bcfd57.zip
Organizes the php scripts used for testing better, so that the whole logic of a unit, server-side and client-side, is contained within the unit itself. Nearly all ajax unit tests take advantage of the new 'framework'. Lots of files got deleted because they became redundant or weren't used anymore.
Diffstat (limited to 'test/localfile.html')
-rw-r--r--test/localfile.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/localfile.html b/test/localfile.html
index 7d49c44e1..faf34091c 100644
--- a/test/localfile.html
+++ b/test/localfile.html
@@ -51,7 +51,7 @@
function doLog( message, args ) {
jQuery( "<li />").appendTo( logUL ).text( message + ': "' + Array.prototype.join.call( args, '" - "' ) + '"' );
}
- jQuery.ajax( "./data/badjson.js" , {
+ jQuery.ajax( "data/ajax/echo/index.php", {
context: jQuery( "#success" ),
dataType: "text"
}).success(function( data, _, xhr ) {
@@ -61,7 +61,7 @@
doLog( "Success (" + xhr.status + ")" , arguments );
this.addClass( "error" ).text( "FAIL" );
});
- jQuery.ajax( "./data/doesnotexist.ext" , {
+ jQuery.ajax( "error" , {
context: jQuery( "#error" ),
dataType: "text"
}).error(function( xhr ) {