Added ajax error messages in the unit test suite because Safari was sometimes tossing errors that were being ignored and that caused a freeze in the test suite.

This commit is contained in:
David Serduke 2007-12-06 23:23:10 +00:00
parent d44e9451f7
commit 12ef255ffd

View file

@ -398,6 +398,10 @@ test("$.ajax() - JSONP, Local", function() {
success: function(data){
ok( data.data, "JSON results returned (GET, no callback)" );
plus();
},
error: function(data){
ok( false, "Ajax error JSON (GET, no callback)" );
plus();
}
});
@ -407,6 +411,10 @@ test("$.ajax() - JSONP, Local", function() {
success: function(data){
ok( data.data, "JSON results returned (GET, url callback)" );
plus();
},
error: function(data){
ok( false, "Ajax error JSON (GET, url callback)" );
plus();
}
});
@ -417,6 +425,10 @@ test("$.ajax() - JSONP, Local", function() {
success: function(data){
ok( data.data, "JSON results returned (GET, data callback)" );
plus();
},
error: function(data){
ok( false, "Ajax error JSON (GET, data callback)" );
plus();
}
});
@ -427,6 +439,10 @@ test("$.ajax() - JSONP, Local", function() {
success: function(data){
ok( data.data, "JSON results returned (GET, data obj callback)" );
plus();
},
error: function(data){
ok( false, "Ajax error JSON (GET, data obj callback)" );
plus();
}
});
@ -437,6 +453,10 @@ test("$.ajax() - JSONP, Local", function() {
success: function(data){
ok( data.data, "JSON results returned (POST, no callback)" );
plus();
},
error: function(data){
ok( false, "Ajax error JSON (GET, data obj callback)" );
plus();
}
});
@ -448,6 +468,10 @@ test("$.ajax() - JSONP, Local", function() {
success: function(data){
ok( data.data, "JSON results returned (POST, data callback)" );
plus();
},
error: function(data){
ok( false, "Ajax error JSON (POST, data callback)" );
plus();
}
});
@ -459,6 +483,10 @@ test("$.ajax() - JSONP, Local", function() {
success: function(data){
ok( data.data, "JSON results returned (POST, data obj callback)" );
plus();
},
error: function(data){
ok( false, "Ajax error JSON (POST, data obj callback)" );
plus();
}
});
});
@ -479,6 +507,10 @@ test("$.ajax() - JSONP, Remote", function() {
success: function(data){
ok( data.data, "JSON results returned (GET, no callback)" );
plus();
},
error: function(data){
ok( false, "Ajax error JSON (GET, no callback)" );
plus();
}
});
@ -488,6 +520,10 @@ test("$.ajax() - JSONP, Remote", function() {
success: function(data){
ok( data.data, "JSON results returned (GET, url callback)" );
plus();
},
error: function(data){
ok( false, "Ajax error JSON (GET, url callback)" );
plus();
}
});
@ -498,6 +534,10 @@ test("$.ajax() - JSONP, Remote", function() {
success: function(data){
ok( data.data, "JSON results returned (GET, data callback)" );
plus();
},
error: function(data){
ok( false, "Ajax error JSON (GET, data callback)" );
plus();
}
});
@ -508,6 +548,10 @@ test("$.ajax() - JSONP, Remote", function() {
success: function(data){
ok( data.data, "JSON results returned (GET, data obj callback)" );
plus();
},
error: function(data){
ok( false, "Ajax error JSON (GET, data obj callback)" );
plus();
}
});
});