summaryrefslogtreecommitdiff
path: root/js/location_test.ts
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2019-02-12 21:14:02 -0500
committerRyan Dahl <ry@tinyclouds.org>2019-02-18 23:04:59 -0500
commit42408febe8cdf9e30ff8d1a3bb13f4994906c53b (patch)
tree92ab3408d426f1d18a511aa16130357ed074410a /js/location_test.ts
parent27afbd135162b435c8af22b18622656ccab12174 (diff)
Add window.location
Diffstat (limited to 'js/location_test.ts')
-rw-r--r--js/location_test.ts8
1 files changed, 8 insertions, 0 deletions
diff --git a/js/location_test.ts b/js/location_test.ts
new file mode 100644
index 000000000..2302c32ed
--- /dev/null
+++ b/js/location_test.ts
@@ -0,0 +1,8 @@
+// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license.
+import { test, assert } from "./test_util.ts";
+
+test(function locationBasic() {
+ // location example: file:///Users/rld/src/deno/js/unit_tests.ts
+ console.log("location", window.location.toString());
+ assert(window.location.toString().endsWith("unit_tests.ts"));
+});