Repository: wicket Updated Branches: refs/heads/master caeca773e -> e4c1438d2
Add some assertions for the new 'init' and 'done' handlers (cherry picked from commit f13985d568349e871f6765eef4f544bb0689526b) Project: http://git-wip-us.apache.org/repos/asf/wicket/repo Commit: http://git-wip-us.apache.org/repos/asf/wicket/commit/e4c1438d Tree: http://git-wip-us.apache.org/repos/asf/wicket/tree/e4c1438d Diff: http://git-wip-us.apache.org/repos/asf/wicket/diff/e4c1438d Branch: refs/heads/master Commit: e4c1438d23856a06d2f13380b626a440529a530b Parents: caeca77 Author: Martin Tzvetanov Grigorov <[email protected]> Authored: Tue Aug 11 14:38:59 2015 +0300 Committer: Martin Tzvetanov Grigorov <[email protected]> Committed: Tue Aug 11 14:40:29 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/e4c1438d/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 da69152..44a08bd 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');
