test/script/basic/NASHORN-758.js

changeset 77
d7e83be6e7aa
parent 7
5a1b0714df0e
child 952
6d5471a497fb
child 962
ac62e33a99b0
equal deleted inserted replaced
76:02f810c26ff9 77:d7e83be6e7aa
23 23
24 /** 24 /**
25 * NASHORN-758 : nashorn shell command line options improvements 25 * NASHORN-758 : nashorn shell command line options improvements
26 * 26 *
27 * @test 27 * @test
28 * @option -Dfoo=bar 28 * @option -Dnashorn.test.foo=bar
29 * @option -Dhello=world 29 * @option -Dnashorn.test.hello=world
30 * @run 30 * @run
31 */ 31 */
32 32
33 33
34 if (java.lang.System.getProperty("foo") != "bar") { 34 if (java.lang.System.getProperty("nashorn.test.foo") != "bar") {
35 fail("System property 'foo' != 'bar'"); 35 fail("System property 'nashorn.test.foo' != 'bar'");
36 } 36 }
37 37
38 if (java.lang.System.getProperty("hello") != "world") { 38 if (java.lang.System.getProperty("nashorn.test.hello") != "world") {
39 fail("System property 'hello' != 'world'"); 39 fail("System property 'nashorn.test.hello' != 'world'");
40 } 40 }

mercurial