Skip to content
Permalink
Browse files

Added ajax error messages in the unit test suite because Safari was s…

…ometimes tossing errors that were being ignored and that caused a freeze in the test suite.
  • Loading branch information
davids549 committed Dec 6, 2007
1 parent d44e945 commit 12ef255ffdb3c2d045ee37beb9419f14d9c30217
Showing with 44 additions and 0 deletions.
  1. +44 −0 test/unit/ajax.js
@@ -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();
}
});
});

0 comments on commit 12ef255

Please sign in to comment.
You can’t perform that action at this time.