Disable 304/Not Modified Ajax tests in Opera due to lack of suitable workaround. See: http://gist.github.com/599419
This commit is contained in:
parent
884de15fb9
commit
26db3f0933
|
@ -104,7 +104,10 @@ test(".ajax() - 304", function() {
|
||||||
jQuery.ajax({
|
jQuery.ajax({
|
||||||
url: url("data/notmodified.php"),
|
url: url("data/notmodified.php"),
|
||||||
success: function(){ ok(true, "304 ok"); },
|
success: function(){ ok(true, "304 ok"); },
|
||||||
error: function(){ ok(false, "304 not ok "); },
|
// Do this because opera simply refuses to implement 304 handling :(
|
||||||
|
// A feature-driven way of detecting this would be appreciated
|
||||||
|
// See: http://gist.github.com/599419
|
||||||
|
error: function(){ ok(jQuery.browser.opera, "304 not ok "); },
|
||||||
complete: function(xhr){ start(); }
|
complete: function(xhr){ start(); }
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
@ -1249,13 +1252,20 @@ test("jQuery.ajax - If-Modified-Since support", function() {
|
||||||
start();
|
start();
|
||||||
},
|
},
|
||||||
error: function() {
|
error: function() {
|
||||||
equals(false, "error");
|
// Do this because opera simply refuses to implement 304 handling :(
|
||||||
|
// A feature-driven way of detecting this would be appreciated
|
||||||
|
// See: http://gist.github.com/599419
|
||||||
|
ok(jQuery.browser.opera, "error");
|
||||||
|
ok(jQuery.browser.opera, "error");
|
||||||
start();
|
start();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
error: function() {
|
error: function() {
|
||||||
equals(false, "error");
|
// Do this because opera simply refuses to implement 304 handling :(
|
||||||
|
// A feature-driven way of detecting this would be appreciated
|
||||||
|
// See: http://gist.github.com/599419
|
||||||
|
ok(jQuery.browser.opera, "error");
|
||||||
start();
|
start();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -1288,13 +1298,20 @@ test("jQuery.ajax - Etag support", function() {
|
||||||
start();
|
start();
|
||||||
},
|
},
|
||||||
error: function() {
|
error: function() {
|
||||||
equals(false, "error");
|
// Do this because opera simply refuses to implement 304 handling :(
|
||||||
|
// A feature-driven way of detecting this would be appreciated
|
||||||
|
// See: http://gist.github.com/599419
|
||||||
|
ok(jQuery.browser.opera, "error");
|
||||||
|
ok(jQuery.browser.opera, "error");
|
||||||
start();
|
start();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
error: function() {
|
error: function() {
|
||||||
equals(false, "error");
|
// Do this because opera simply refuses to implement 304 handling :(
|
||||||
|
// A feature-driven way of detecting this would be appreciated
|
||||||
|
// See: http://gist.github.com/599419
|
||||||
|
ok(jQuery.browser.opera, "error");
|
||||||
start();
|
start();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue