summaryrefslogtreecommitdiff
path: root/js/url_test.ts
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2019-01-20 21:31:13 -0500
committerRyan Dahl <ry@tinyclouds.org>2019-01-21 08:28:13 -0600
commit7eb74ba0d6cb492b0710b892bb4cf1c74bf64c90 (patch)
tree35c2baea63b7e7447324407d302ae5a6b4779232 /js/url_test.ts
parent106fe1f7621dfaa70481ffeacea6e217eb196d07 (diff)
Revert "Use the same parse processing at contractor of URL with setters (#1549)"
Right now every instance of URL which has a basePath passed will share the same instance of parts, so a change to one of them will change them all. https://github.com/denoland/deno/pull/1549#issuecomment-455896081 This reverts commit 9e1f5ccb8b06c01c1330ed38aeba83cfc51f5387.
Diffstat (limited to 'js/url_test.ts')
-rw-r--r--js/url_test.ts13
1 files changed, 0 insertions, 13 deletions
diff --git a/js/url_test.ts b/js/url_test.ts
index 2bfea6bef..f89845274 100644
--- a/js/url_test.ts
+++ b/js/url_test.ts
@@ -31,19 +31,6 @@ test(function urlParsing() {
);
});
-test(function constractorParsing() {
- const url = new URL("http://どめいん.com/ぱす?きー=ばりゅー#はっしゅ");
- const { host, pathname, search, hash } = url;
- url.host = "どめいん.com";
- url.pathname = "/ぱす";
- url.search = "?きー=ばりゅー";
- url.hash = "#はっしゅ";
- assertEqual(host, url.host);
- assertEqual(pathname, url.pathname);
- assertEqual(search, url.search);
- assertEqual(hash, url.hash);
-});
-
test(function urlModifications() {
const url = new URL(
"https://foo:bar@baz.qat:8000/qux/quux?foo=bar&baz=12#qat"