diff options
author | Matt A. Tobin <email@mattatobin.com> | 2018-02-23 08:01:32 -0500 |
---|---|---|
committer | Matt A. Tobin <email@mattatobin.com> | 2018-02-23 08:01:32 -0500 |
commit | 38e595cb2d37cb30b094e9e79c9a73ef16baab1a (patch) | |
tree | 6a479babf0ae47dd4a57d50a2747775aed5dc52e /dom/url/tests/test_url.html | |
parent | a4adb6827f02bd4a34ab9c650127853d2e46bccb (diff) | |
parent | 7eb2c156ba826a0ebf05db56a9fccf46094478ea (diff) | |
download | uxp-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.html | 6 |
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> |