diff options
author | Steve Clay <steve@mrclay.org> | 2013-06-20 05:20:55 -0700 |
---|---|---|
committer | Steve Clay <steve@mrclay.org> | 2013-06-20 05:20:55 -0700 |
commit | d8b56850e79729cfaf2e5f85b882cf3c628a3ace (patch) | |
tree | dbef48185abc9cb8627023ca1348df74f4330947 /js/tests/ElggLibTest.js | |
parent | d19322b7791d5a4ba52335b343f58d8059375bc5 (diff) | |
parent | 0433c6e2e1cfda644e18640867828de787cccb8e (diff) | |
download | elgg-d8b56850e79729cfaf2e5f85b882cf3c628a3ace.tar.gz elgg-d8b56850e79729cfaf2e5f85b882cf3c628a3ace.tar.bz2 |
Merge pull request #5650 from mrclay/pr5648
Fixes #5647 - Corrects handling of plus sign in elgg.parse_str
Diffstat (limited to 'js/tests/ElggLibTest.js')
-rw-r--r-- | js/tests/ElggLibTest.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/js/tests/ElggLibTest.js b/js/tests/ElggLibTest.js index 31b561923..bd39e7fb3 100644 --- a/js/tests/ElggLibTest.js +++ b/js/tests/ElggLibTest.js @@ -128,3 +128,13 @@ ElggLibTest.prototype.testParseUrl = function() { }); }; +ElggLibTest.prototype.testParseStr = function() { + + [ + ["A+%2B+B=A+%2B+B", {"A + B": "A + B"}] + + ].forEach(function(args) { + assertEquals(args[1], elgg.parse_str(args[0])); + }); +}; + |