8049318: Test hideLocationProperties.js fails on Window due to backslash in path
Reviewed-by: lagergren, sundar
Contributed-by: Sergey Lugovoy <sergey.lugovoy@oracle.com>
--- 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__) }