summaryrefslogtreecommitdiff
path: root/dom/url/tests/test_url.html
diff options
context:
space:
mode:
authorMatt A. Tobin <email@mattatobin.com>2018-02-23 08:01:32 -0500
committerMatt A. Tobin <email@mattatobin.com>2018-02-23 08:01:32 -0500
commit38e595cb2d37cb30b094e9e79c9a73ef16baab1a (patch)
tree6a479babf0ae47dd4a57d50a2747775aed5dc52e /dom/url/tests/test_url.html
parenta4adb6827f02bd4a34ab9c650127853d2e46bccb (diff)
parent7eb2c156ba826a0ebf05db56a9fccf46094478ea (diff)
downloaduxp-38e595cb2d37cb30b094e9e79c9a73ef16baab1a.tar.gz
Merge branch 'master' into eme
Diffstat (limited to 'dom/url/tests/test_url.html')
-rw-r--r--dom/url/tests/test_url.html6
1 files changed, 6 insertions, 0 deletions
diff --git a/dom/url/tests/test_url.html b/dom/url/tests/test_url.html
index 3f3f727d63..d07a752bb4 100644
--- a/dom/url/tests/test_url.html
+++ b/dom/url/tests/test_url.html
@@ -438,5 +438,11 @@
url = new URL("data:text/html,<a href=\"http://example.org/?q\">Link</a>");
is(url.href, "data:text/html,<a%20href=\"http://example.org/?q\">Link</a>");
</script>
+
+ <script>
+ var u = new URL('http://www.example.org');
+ ok(u.toJSON(), 'http://www.example.org', "URL.toJSON()");
+ is(JSON.stringify(u), "\"http://www.example.org/\"", "JSON.stringify(u) works");
+ </script>
</body>
</html>