[Pkg-javascript-commits] [backbone] 187/211: Test complex query strings. Fails in some browsers.

Jonas Smedegaard js at moszumanska.debian.org
Sat May 3 17:00:22 UTC 2014


This is an automated email from the git hooks/post-receive script.

js pushed a commit to tag 0.5.0
in repository backbone.

commit 621c9edfc669e4c53b36b957c1c3e87e593cbc70
Author: Francis Gulotta <fgulota at highbridge.com>
Date:   Fri Jun 17 15:37:12 2011 -0400

    Test complex query strings. Fails in some browsers.
---
 test/router.js | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/test/router.js b/test/router.js
index 170daa7..2f2bc78 100644
--- a/test/router.js
+++ b/test/router.js
@@ -97,6 +97,16 @@ $(document).ready(function() {
       start();
     }, 10);
   });
+  
+  asyncTest("Router: routes (complex query)", 2, function() {
+    var complex = '~!@#$%^&*()=+[]{}\\;:\'",/? ';
+    window.location.hash = 'complex?' + encodeURIComponent(complex);
+    setTimeout(function() {
+      equals(router.entity, 'complex');
+      equals(router.queryArgs, complex);
+      start();
+    }, 10);
+  });
 
   asyncTest("Router: routes (anything)", 1, function() {
     window.location.hash = 'doesnt-match-a-route';

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/backbone.git



More information about the Pkg-javascript-commits mailing list