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