From 6661e7e287aa595eccdc8d49940c40953b1f69bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Fri, 1 May 2020 20:15:28 +0200 Subject: BREAKING: remove window.location and self.location (#5034) This commit removes "location" global available on "window", "globalThis" and "self". --- cli/js/tests/location_test.ts | 7 ------- cli/js/tests/unit_tests.ts | 1 - 2 files changed, 8 deletions(-) delete mode 100644 cli/js/tests/location_test.ts (limited to 'cli/js/tests') diff --git a/cli/js/tests/location_test.ts b/cli/js/tests/location_test.ts deleted file mode 100644 index 2d2faf0c2..000000000 --- a/cli/js/tests/location_test.ts +++ /dev/null @@ -1,7 +0,0 @@ -// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license. -import { unitTest, assert } from "./test_util.ts"; - -unitTest(function locationBasic(): void { - // location example: file:///Users/rld/src/deno/js/unit_tests.ts - assert(window.location.toString().endsWith("unit_test_runner.ts")); -}); diff --git a/cli/js/tests/unit_tests.ts b/cli/js/tests/unit_tests.ts index db2df2216..40d0124d3 100644 --- a/cli/js/tests/unit_tests.ts +++ b/cli/js/tests/unit_tests.ts @@ -33,7 +33,6 @@ import "./headers_test.ts"; import "./internals_test.ts"; import "./io_test.ts"; import "./link_test.ts"; -import "./location_test.ts"; import "./make_temp_test.ts"; import "./metrics_test.ts"; import "./dom_iterable_test.ts"; -- cgit v1.2.3