0396f3bcea15a45ba049cc133ff1cca8fd9f82f6
[framework/web/webkit-efl.git] / LayoutTests / fast / dom / Window / Location / location-override-valueOf-on-proto-using-defineGetter.html
1 <html>
2 <head>
3     <link rel="stylesheet" href="../../../js/resources/js-test-style.css">
4     <script src="../../../js/resources/js-test-pre.js"></script>
5     <script src="resources/location-tests-functions.js"></script>
6 </head>
7 <body>
8 <script>
9     window.location.__proto__.__defineGetter__("valueOf", function () {
10         return function() { return "haxored"; }
11     });
12
13     var result = normalizeURL(String(window.location));
14     var correctValue = normalizeURL(document.URL);
15     shouldBe("result", "correctValue");
16
17     successfullyParsed = true;
18 </script>
19 <script src="../../../js/resources/js-test-post.js"></script>
20 </body>
21 </html>