aboutsummaryrefslogtreecommitdiff
path: root/js/tests/ElggLibTest.js
diff options
context:
space:
mode:
authorPaweł Sroka <srokap@gmail.com>2013-06-19 19:37:10 +0200
committerSteve Clay <steve@mrclay.org>2013-06-19 15:24:38 -0400
commitccdf769513fa0268c5ef6880f54dfa1a25f71da6 (patch)
tree425e864d6db3dcac5c9462643cdccf60e7d66dca /js/tests/ElggLibTest.js
parentd19322b7791d5a4ba52335b343f58d8059375bc5 (diff)
downloadelgg-ccdf769513fa0268c5ef6880f54dfa1a25f71da6.tar.gz
elgg-ccdf769513fa0268c5ef6880f54dfa1a25f71da6.tar.bz2
Fixes #5647 - Corrects handling of plus sign in elgg.parse_str
Diffstat (limited to 'js/tests/ElggLibTest.js')
-rw-r--r--js/tests/ElggLibTest.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/js/tests/ElggLibTest.js b/js/tests/ElggLibTest.js
index 31b561923..21c6cb214 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 + B"]
+
+ ].forEach(function(args) {
+ assertEquals(args[1], elgg.parse_str(args[0]));
+ });
+};
+