blob: 5c4551370ea109d676be706ba3cd9c234cb171fc [file] [log] [blame]
<html>
<head>
<script src="../../../../resources/js-test.js"></script>
<script src="resources/location-tests-functions.js"></script>
</head>
<body>
<script>
try {
window.__defineGetter__("location", function() { return "haxored"; });
} catch (e) { }
var result = normalizeURL(String(window.location));
var correctValue = normalizeURL(document.URL);
shouldBe("result", "correctValue");
</script>
</body>
</html>