JS Test Harness: Insert the stylesheet dynamically
[WebKit-https.git] / LayoutTests / fast / dom / Window / Location / location-override-toString-on-proto.html
1 <html>
2 <head>
3     <script src="../../../js/resources/js-test-pre.js"></script>
4     <script src="resources/location-tests-functions.js"></script>
5 </head>
6 <body>
7 <script>
8     window.location.__proto__.toString = function() { return "haxored"; }
9
10     var result = normalizeURL(String(window.location));
11     var correctValue = normalizeURL(document.URL);
12     shouldBe("result", "correctValue");
13
14     successfullyParsed = true;
15 </script>
16 <script src="../../../js/resources/js-test-post.js"></script>
17 </body>
18 </html>