<html>
<head>
<script src="/public/js/testharness-domstorm.js"></script>
<script>
test(function() {
assert_true(document.hasOwnProperty("location"), "property exist on the object itself");
var descriptor = Object.getOwnPropertyDescriptor(document, "location");
assert_false(descriptor.configurable, "property is not configurable");
assert_throws(new TypeError(), function() {
Object.defineProperty(document, "location", {get: function () {}});
}, "attempting to modify property throws TypeError");
}, "location is unforgeable");
</script>
</head>
<body>
Testing location unforgeable
</body>
</html>