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