< prev index next >

test/script/nosecurity/jjs-option-define.js

Print this page

        

*** 23,33 **** /** * JDK-8144113: Nashorn: enable jjs testing. * @test * @option -scripting - * @runif os.not.windows * @run * @summary Test to check -D flag basic functionality */ load(__DIR__ + "jjs-common.js") --- 23,32 ----
*** 36,46 **** var testfunc_file = path_func.toAbsolutePath() // code to check basic functionality var msg_func = <<EOD try { ! var System = Java.type('java.lang.System'); print(System.getProperty('user.name')) if (System.getProperty('user.name') != "nashorn9") throw new Error("un expected system property user.name value") } finally { } --- 35,45 ---- var testfunc_file = path_func.toAbsolutePath() // code to check basic functionality var msg_func = <<EOD try { ! var System = Java.type('java.lang.System') print(System.getProperty('user.name')) if (System.getProperty('user.name') != "nashorn9") throw new Error("un expected system property user.name value") } finally { }
< prev index next >