mirror of
https://github.com/denoland/deno.git
synced 2025-09-27 04:39:10 +00:00
Add window.location
This commit is contained in:
parent
27afbd1351
commit
42408febe8
26 changed files with 241 additions and 41 deletions
8
js/location_test.ts
Normal file
8
js/location_test.ts
Normal file
|
@ -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"));
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue