OLD | NEW |
1 <html> | 1 <html> |
2 <head> | 2 <head> |
3 <script src="../../../js/resources/js-test-pre.js"></script> | 3 <script src="../../../js/resources/js-test-pre.js"></script> |
4 <script src="resources/location-tests-functions.js"></script> | 4 <script src="resources/location-tests-functions.js"></script> |
5 </head> | 5 </head> |
6 <body> | 6 <body> |
7 <script> | 7 <script> |
8 window.location.__defineGetter__("toString", function () { | 8 window.location.__defineGetter__("toString", function () { |
9 return function() { return "haxored"; } | 9 return function() { return "haxored"; } |
10 }); | 10 }); |
11 | 11 |
12 var result = normalizeURL(String(window.location)); | 12 var result = normalizeURL(String(window.location)); |
13 var correctValue = normalizeURL(document.URL); | 13 var correctValue = normalizeURL(document.URL); |
14 shouldBe("result", "correctValue"); | 14 shouldBe("result", "correctValue"); |
15 </script> | 15 </script> |
16 <script src="../../../js/resources/js-test-post.js"></script> | |
17 </body> | 16 </body> |
18 </html> | 17 </html> |
OLD | NEW |