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