1.1 --- a/vmtest/src/main/java/org/apidesign/bck2brwsr/vmtest/Compare.java Tue Jan 22 11:59:25 2013 +0100
1.2 +++ b/vmtest/src/main/java/org/apidesign/bck2brwsr/vmtest/Compare.java Thu Feb 07 17:24:19 2013 +0100
1.3 @@ -24,7 +24,7 @@
1.4
1.5 /** Can be applied on a method that yields a return value.
1.6 * Together with {@link VMTest#create} it can be used to write
1.7 - * methods which are executed in real as well as JavaScript VMs and
1.8 + * methods which are executed in real VM as well as JavaScript VMs and
1.9 * their results are compared.
1.10 *
1.11 * @author Jaroslav Tulach <jtulach@netbeans.org>
1.12 @@ -32,4 +32,14 @@
1.13 @Retention(RetentionPolicy.RUNTIME)
1.14 @Target(ElementType.METHOD)
1.15 public @interface Compare {
1.16 + /** Specifies whether the system should internal JavaScript interpreter
1.17 + * as available via {@link javax.script.ScriptEngine}. Defaults to true,
1.18 + * but in some situations (benchmarking comes to my mind), one may set this
1.19 + * to <code>false</code>. In such case only browsers provided via
1.20 + * <code>vmtest.brwsrs</code> property are used. For example
1.21 + * <code>"vmtest.brwsrs=firefox,google-chrome"</code> would run the test
1.22 + * in HotSpot VM, firefox and chrome and would compare the results.
1.23 + * @return
1.24 + */
1.25 + boolean scripting() default true;
1.26 }