blob: 5ccc9c76b6c030852f050503f38f5a4d8e2c43cf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
<!doctype html>
<title>document.location</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<div id="log"></div>
<script>
test(function() {
var doc = document.implementation.createHTMLDocument("");
assert_equals(doc.location, null);
}, "document not in a browsing context");
test(function() {
assert_equals(document.location, location);
}, "document.location equals window.location");
</script>
|