Skip to content

Commit

Permalink
adding additional router test
Browse files Browse the repository at this point in the history
  • Loading branch information
jashkenas committed Feb 27, 2012
1 parent 83d2918 commit f930b5f
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions test/router.js
Original file line number Diff line number Diff line change
Expand Up @@ -263,4 +263,18 @@ $(document).ready(function() {
equal(router.rest, 'has%20space');
});


asyncTest("Router: correctly handles URLs with % (#868)", 3, function() {
window.location.hash = 'search/fat%3A1.5%25';
setTimeout(function() {
window.location.hash = 'search/fat';
setTimeout(function() {
equal(router.query, 'fat');
equal(router.page, undefined);
equal(lastRoute, 'search');
start();
}, 50);
}, 50);
});

});

0 comments on commit f930b5f

Please sign in to comment.