Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

adding additional router test

  • Loading branch information...
commit f930b5f042253ab086d36c54011fab5a23cb1e5f 1 parent 83d2918
Jeremy Ashkenas jashkenas authored

Showing 1 changed file with 14 additions and 0 deletions. Show diff stats Hide diff stats

  1. +14 0 test/router.js
14 test/router.js
@@ -263,4 +263,18 @@ $(document).ready(function() {
263 263 equal(router.rest, 'has%20space');
264 264 });
265 265
  266 +
  267 + asyncTest("Router: correctly handles URLs with % (#868)", 3, function() {
  268 + window.location.hash = 'search/fat%3A1.5%25';
  269 + setTimeout(function() {
  270 + window.location.hash = 'search/fat';
  271 + setTimeout(function() {
  272 + equal(router.query, 'fat');
  273 + equal(router.page, undefined);
  274 + equal(lastRoute, 'search');
  275 + start();
  276 + }, 50);
  277 + }, 50);
  278 + });
  279 +
266 280 });

0 comments on commit f930b5f

Please sign in to comment.
Something went wrong with that request. Please try again.