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 <[email protected]>
Authored: Tue Aug 11 14:38:59 2015 +0300
Committer: Martin Tzvetanov Grigorov <[email protected]>
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');

Reply via email to