You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by mg...@apache.org on 2016/01/28 14:32:40 UTC
wicket git commit: WICKET-6084 ajax request failure handler receives
incorrect arguments
Repository: wicket
Updated Branches:
refs/heads/wicket-7.x d8fbdde23 -> 3bc3f2327
WICKET-6084 ajax request failure handler receives incorrect arguments
Add unit tests
Project: http://git-wip-us.apache.org/repos/asf/wicket/repo
Commit: http://git-wip-us.apache.org/repos/asf/wicket/commit/3bc3f232
Tree: http://git-wip-us.apache.org/repos/asf/wicket/tree/3bc3f232
Diff: http://git-wip-us.apache.org/repos/asf/wicket/diff/3bc3f232
Branch: refs/heads/wicket-7.x
Commit: 3bc3f2327d243274dba5e7ba2ffcbd5ea675b62c
Parents: d8fbdde
Author: Martin Tzvetanov Grigorov <mg...@apache.org>
Authored: Thu Jan 28 14:32:00 2016 +0100
Committer: Martin Tzvetanov Grigorov <mg...@apache.org>
Committed: Thu Jan 28 14:32:00 2016 +0100
----------------------------------------------------------------------
wicket-core/src/test/js/ajax.js | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/wicket/blob/3bc3f232/wicket-core/src/test/js/ajax.js
----------------------------------------------------------------------
diff --git a/wicket-core/src/test/js/ajax.js b/wicket-core/src/test/js/ajax.js
index 781222a..d36d6da 100644
--- a/wicket-core/src/test/js/ajax.js
+++ b/wicket-core/src/test/js/ajax.js
@@ -385,7 +385,7 @@ jQuery(document).ready(function() {
asyncTest('verify arguments to IAjaxCallListener handlers. Failure scenario.', function () {
- expect(10);
+ expect(13);
var attrs = {
u: 'data/ajax/nonExisting.json',
@@ -400,9 +400,12 @@ jQuery(document).ready(function() {
}
],
fh: [
- function(attributes) {
+ function(attributes, jqXHR, errorMessage, textStatus) {
start();
equal(attrs.u, attributes.u);
+ ok(typeof(jqXHR.success) === "function", "jqXHR should be passed");
+ equal(errorMessage, "Not Found", "Error message should be passed");
+ equal(textStatus, "error", "Text status should be passed");
}
],
bsh: [