blob: b83b38f80dff96274ee48e02a9c422e439bcb888 [file] [log] [blame]
<html>
<head>
<script src="../../../../resources/js-test-pre.js"></script>
<script src="resources/location-tests-functions.js"></script>
</head>
<body>
<script>
window.location.__proto__.__defineGetter__("valueOf", function () {
return function() { return "haxored"; }
});
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>