Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixes #152

  • Loading branch information...
commit 6a0c392224e820cef13fc41c83a4925b3aa3990b 1 parent 30680d4
Rostislav Hristov authored
Showing with 10 additions and 0 deletions.
  1. +10 −0 test/test.js
10 test/test.js
View
@@ -86,6 +86,16 @@ asyncTest('Parameter test', function() {
asyncTest('Parameter test', function() {
setTimeout(function() {
+ $.address.path('/test');
+ $.address.parameter('p', encodeURIComponent('Test & Test'));
+ equals($.address.value(), '/test?p='+ encodeURIComponent('Test & Test'));
+ same($.address.parameter('p'), encodeURIComponent('Test & Test'));
+ start();
+ }, 100);
+});
+
+asyncTest('Parameter test', function() {
+ setTimeout(function() {
$.address.autoUpdate(false)
.queryString('')
.parameter('p', 1, true)
Please sign in to comment.
Something went wrong with that request. Please try again.