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 2015/08/11 13:39:40 UTC
wicket git commit: Add some assertions for the new 'init' and 'done'
handlers
Repository: wicket
Updated Branches:
refs/heads/wicket-6.x 031dee240 -> f13985d56
Add some assertions for the new 'init' and 'done' handlers
Project: http://git-wip-us.apache.org/repos/asf/wicket/repo
Commit: http://git-wip-us.apache.org/repos/asf/wicket/commit/f13985d5
Tree: http://git-wip-us.apache.org/repos/asf/wicket/tree/f13985d5
Diff: http://git-wip-us.apache.org/repos/asf/wicket/diff/f13985d5
Branch: refs/heads/wicket-6.x
Commit: f13985d568349e871f6765eef4f544bb0689526b
Parents: 031dee2
Author: Martin Tzvetanov Grigorov <mg...@apache.org>
Authored: Tue Aug 11 14:38:59 2015 +0300
Committer: Martin Tzvetanov Grigorov <mg...@apache.org>
Committed: Tue Aug 11 14:38:59 2015 +0300
----------------------------------------------------------------------
wicket-core/src/test/js/ajax.js | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/wicket/blob/f13985d5/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 f12078a..5cc6571 100644
--- a/wicket-core/src/test/js/ajax.js
+++ b/wicket-core/src/test/js/ajax.js
@@ -327,13 +327,15 @@ jQuery(document).ready(function() {
asyncTest('verify arguments to IAjaxCallListener handlers. Success scenario.', function () {
- expect(11);
+ expect(13);
var attrs = {
u: 'data/ajax/nonWicketResponse.json',
e: 'event1',
dt: 'json', // datatype
wr: false, // not Wicket's <ajax-response>
+ ih: [function() {ok('Init handler should be called')}],
+ dh: [function() {ok('Done handler should be called')}],
sh: [
function(attributes, jqXHR, data, textStatus) {
start();
@@ -383,13 +385,15 @@ jQuery(document).ready(function() {
asyncTest('verify arguments to IAjaxCallListener handlers. Failure scenario.', function () {
- expect(8);
+ expect(10);
var attrs = {
u: 'data/ajax/nonExisting.json',
e: 'event1',
dt: 'json', // datatype
wr: false, // not Wicket's <ajax-response>
+ ih: [function() {ok('Init handler should be called')}],
+ dh: [function() {ok('Done handler should be called')}],
sh: [
function(attributes, jqXHR, data, textStatus) {
ok(false, 'Should not be called');