Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(87)

Side by Side Diff: LayoutTests/fast/dom/Window/Location/location-override-toString-on-proto.html

Issue 58533003: Move fast/js/resources files to resources. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 <html> 1 <html>
2 <head> 2 <head>
3 <script src="../../../js/resources/js-test-pre.js"></script> 3 <script src="../../../../resources/js-test.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.__proto__.toString = function() { return "haxored"; } 8 window.location.__proto__.toString = function() { return "haxored"; }
9 9
10 var result = normalizeURL(String(window.location)); 10 var result = normalizeURL(String(window.location));
11 var correctValue = normalizeURL(document.URL); 11 var correctValue = normalizeURL(document.URL);
12 shouldBe("result", "correctValue"); 12 shouldBe("result", "correctValue");
13 </script> 13 </script>
14 </body> 14 </body>
15 </html> 15 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698