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