blob: 2928cbb6d1e042412293276f0bee41dd48bf532f [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>
window.__defineGetter__("window", function() {
return { location: "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>