Add window.location

This commit is contained in:
Ryan Dahl 2019-02-12 21:14:02 -05:00
parent 27afbd1351
commit 42408febe8
26 changed files with 241 additions and 41 deletions

8
js/location_test.ts Normal file
View 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"));
});