blob: 72aa4d31127c77548330e3d20af5f8943b1a773b [file] [log] [blame]
<html>
<head>
<script src="../../../../resources/js-test-pre.js"></script>
<script src="resources/location-tests-functions.js"></script>
</head>
<body>
<script>
shouldThrowErrorName(function() {
window.__defineGetter__("location", () => "haxored");
}, "TypeError");
var result = normalizeURL(String(window.location));
var correctValue = normalizeURL(document.URL);
shouldBe("result", "correctValue");
</script>
<script src="../../../../resources/js-test-post.js"></script>
</body>
</html>