nashorn/test/script/nosecurity/jjs-option-fx.js
changeset 36689 3370f6f942ff
parent 35329 069098445d1e
equal deleted inserted replaced
36688:49f82e2e9fa4 36689:3370f6f942ff
    24 /**
    24 /**
    25  * JDK-8144113: Nashorn: enable jjs testing. 
    25  * JDK-8144113: Nashorn: enable jjs testing. 
    26  * check -fx option.
    26  * check -fx option.
    27  * @test
    27  * @test
    28  * @option -scripting
    28  * @option -scripting
    29  * @runif os.not.windows
       
    30  * @run
    29  * @run
    31  * @summary Test -fx flag and its basic functionality
    30  * @summary Test -fx flag and its basic functionality
    32  * the JavaFX primary stage is available to Nashorn as a global property $STAGE with -fx
    31  * the JavaFX primary stage is available to Nashorn as a global property $STAGE with -fx
    33  * used this to check with and without -fx 
    32  * used this to check with and without -fx 
    34  */
    33  */
    35 
    34 
    36 load(__DIR__ + "jjs-common.js")
    35 load(__DIR__ + "jjs-common.js")
    37 
    36 
    38 var msg_flag = "print(typeof($STAGE)); exit();";
    37 var msg_flag = "print(typeof($STAGE)); exit();"
    39 
    38 
    40 // flag test expected output variables
    39 // flag test expected output variables
    41 var e_outn = "undefined"
    40 var e_outn = "undefined"
    42 
    41 
    43 // positive flag test condition expression string other than the default
    42 // positive flag test condition expression string other than the default