Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / dom / Window / Location / location-override-valueOf-on-proto-using-defineGetter.html
blobc58c6e1f08aa51dfeed4586e1e507bdfdbfb24e5
1 <html>
2 <head>
3 <script src="../../../../resources/js-test.js"></script>
4 <script src="resources/location-tests-functions.js"></script>
5 </head>
6 <body>
7 <script>
8 window.location.__proto__.__defineGetter__("valueOf", function () {
9 return function() { return "haxored"; }
10 });
12 var result = normalizeURL(String(window.location));
13 var correctValue = normalizeURL(document.URL);
14 shouldBe("result", "correctValue");
15 </script>
16 </body>
17 </html>