This is an automated email from the ASF dual-hosted git repository.

mgrigorov pushed a commit to branch wicket-8.x
in repository https://gitbox.apache.org/repos/asf/wicket.git


The following commit(s) were added to refs/heads/wicket-8.x by this push:
     new 4441ddf  WICKET-6651 Redirecting with ResetResponseException does not 
work anymore
4441ddf is described below

commit 4441ddf3f8c6f957937011bd2a43fbc8f53353f7
Author: Martin Tzvetanov Grigorov <[email protected]>
AuthorDate: Tue Apr 9 23:07:31 2019 +0300

    WICKET-6651 Redirecting with ResetResponseException does not work anymore
    
    Do not use ES6 syntax in JS tests (yet)
---
 wicket-core/src/test/js/ajax.js | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/wicket-core/src/test/js/ajax.js b/wicket-core/src/test/js/ajax.js
index c8855b2..1305044 100644
--- a/wicket-core/src/test/js/ajax.js
+++ b/wicket-core/src/test/js/ajax.js
@@ -1402,8 +1402,8 @@ jQuery(document).ready(function() {
 
                        expect(2);
 
-                       const redirectUrl = 
'http://www.example.com/ajax/location';
-                       const componentUrl = 'data/ajax/componentId.xml';
+                       var redirectUrl = 
'http://www.example.com/ajax/location';
+                       var componentUrl = 'data/ajax/componentId.xml';
 
                        $.mockjax({
                                url: componentUrl,
@@ -1413,7 +1413,7 @@ jQuery(document).ready(function() {
                                }
                        });
 
-                       const originalRedirect = Wicket.Ajax.redirect;
+                       var originalRedirect = Wicket.Ajax.redirect;
 
                        Wicket.Ajax.redirect = function(location) {
                                Wicket.Ajax.redirect = originalRedirect;
@@ -1421,7 +1421,7 @@ jQuery(document).ready(function() {
                                equal(location, redirectUrl, 'Ajax redirect in 
301 response is properly handled');
                        };
 
-                       const attrs = {
+                       var attrs = {
                                u: componentUrl,
                                c: 'componentId'
                        };

Reply via email to