summaryrefslogtreecommitdiff
path: root/netwerk
diff options
context:
space:
mode:
authorjanekptacijarabaci <janekptacijarabaci@seznam.cz>2018-02-12 19:40:38 +0100
committerjanekptacijarabaci <janekptacijarabaci@seznam.cz>2018-02-12 19:40:38 +0100
commit2c0b407f04e850b45c912917026e4945ec0dc2f5 (patch)
tree4c4ab226542e5b1d3c201b20d48156f905dff13a /netwerk
parent26163d89884a6eadf66e15a8bf9e800aa960ba5f (diff)
downloaduxp-2c0b407f04e850b45c912917026e4945ec0dc2f5.tar.gz
JS - location.hash - no escape single quote
Diffstat (limited to 'netwerk')
-rw-r--r--netwerk/test/unit/test_standardurl.js11
1 files changed, 11 insertions, 0 deletions
diff --git a/netwerk/test/unit/test_standardurl.js b/netwerk/test/unit/test_standardurl.js
index c4d44f41ff..476c34b70b 100644
--- a/netwerk/test/unit/test_standardurl.js
+++ b/netwerk/test/unit/test_standardurl.js
@@ -251,6 +251,17 @@ add_test(function test_escapeBrackets()
run_next_test();
});
+add_test(function test_escapeQuote()
+{
+ var url = stringToURL("http://example.com/#'");
+ do_check_eq(url.spec, "http://example.com/#'");
+ do_check_eq(url.ref, "'");
+ url.ref = "test'test";
+ do_check_eq(url.spec, "http://example.com/#test'test");
+ do_check_eq(url.ref, "test'test");
+ run_next_test();
+});
+
add_test(function test_apostropheEncoding()
{
// For now, single quote is escaped everywhere _except_ the path.