8049318: Test hideLocationProperties.js fails on Window due to backslash in path
authoryan
Wed, 30 Jul 2014 16:49:02 +0400
changeset 25823 848259b39472
parent 25822 4d7a0832c63e
child 25824 ea1f7997ebb2
8049318: Test hideLocationProperties.js fails on Window due to backslash in path Reviewed-by: lagergren, sundar Contributed-by: Sergey Lugovoy <sergey.lugovoy@oracle.com>
nashorn/test/script/basic/hideLocationProperties.js
--- a/nashorn/test/script/basic/hideLocationProperties.js	Tue Jul 29 14:35:24 2014 -0700
+++ b/nashorn/test/script/basic/hideLocationProperties.js	Wed Jul 30 16:49:02 2014 +0400
@@ -46,7 +46,7 @@
     (function() { print(__FILE__) })()
 }
 
-print(__FILE__)
+print(__FILE__.replace(/\\/g, "/"))
 
 var o = { __FILE__: "woot" }
 with(o) { print(__FILE__) }