blob: 52dc3fa7563525269d775844e79fc116e18ff12f [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.location.__defineGetter__("valueOf", function () {
return function() { return "haxored"; }
});
} catch (e) { }
var result = normalizeURL(String(window.location));
var correctValue = normalizeURL(document.URL);
shouldBe("result", "correctValue");
</script>
</body>
</html>