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