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:
parent
d44e9451f7
commit
12ef255ffd
|
@ -398,6 +398,10 @@ test("$.ajax() - JSONP, Local", function() {
|
||||||
success: function(data){
|
success: function(data){
|
||||||
ok( data.data, "JSON results returned (GET, no callback)" );
|
ok( data.data, "JSON results returned (GET, no callback)" );
|
||||||
plus();
|
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){
|
success: function(data){
|
||||||
ok( data.data, "JSON results returned (GET, url callback)" );
|
ok( data.data, "JSON results returned (GET, url callback)" );
|
||||||
plus();
|
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){
|
success: function(data){
|
||||||
ok( data.data, "JSON results returned (GET, data callback)" );
|
ok( data.data, "JSON results returned (GET, data callback)" );
|
||||||
plus();
|
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){
|
success: function(data){
|
||||||
ok( data.data, "JSON results returned (GET, data obj callback)" );
|
ok( data.data, "JSON results returned (GET, data obj callback)" );
|
||||||
plus();
|
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){
|
success: function(data){
|
||||||
ok( data.data, "JSON results returned (POST, no callback)" );
|
ok( data.data, "JSON results returned (POST, no callback)" );
|
||||||
plus();
|
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){
|
success: function(data){
|
||||||
ok( data.data, "JSON results returned (POST, data callback)" );
|
ok( data.data, "JSON results returned (POST, data callback)" );
|
||||||
plus();
|
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){
|
success: function(data){
|
||||||
ok( data.data, "JSON results returned (POST, data obj callback)" );
|
ok( data.data, "JSON results returned (POST, data obj callback)" );
|
||||||
plus();
|
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){
|
success: function(data){
|
||||||
ok( data.data, "JSON results returned (GET, no callback)" );
|
ok( data.data, "JSON results returned (GET, no callback)" );
|
||||||
plus();
|
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){
|
success: function(data){
|
||||||
ok( data.data, "JSON results returned (GET, url callback)" );
|
ok( data.data, "JSON results returned (GET, url callback)" );
|
||||||
plus();
|
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){
|
success: function(data){
|
||||||
ok( data.data, "JSON results returned (GET, data callback)" );
|
ok( data.data, "JSON results returned (GET, data callback)" );
|
||||||
plus();
|
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){
|
success: function(data){
|
||||||
ok( data.data, "JSON results returned (GET, data obj callback)" );
|
ok( data.data, "JSON results returned (GET, data obj callback)" );
|
||||||
plus();
|
plus();
|
||||||
|
},
|
||||||
|
error: function(data){
|
||||||
|
ok( false, "Ajax error JSON (GET, data obj callback)" );
|
||||||
|
plus();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue