changeset 25823:848259b39472

8049318: Test hideLocationProperties.js fails on Window due to backslash in path Reviewed-by: lagergren, sundar Contributed-by: Sergey Lugovoy <sergey.lugovoy@oracle.com>
author yan
date Wed, 30 Jul 2014 16:49:02 +0400
parents 4d7a0832c63e
children ea1f7997ebb2
files nashorn/test/script/basic/hideLocationProperties.js
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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__) }