diff -r 5df0a239ebeb -r 4252bfc396fc vmtest/src/main/java/org/apidesign/bck2brwsr/vmtest/Compare.java --- a/vmtest/src/main/java/org/apidesign/bck2brwsr/vmtest/Compare.java Tue Jan 22 11:59:25 2013 +0100 +++ b/vmtest/src/main/java/org/apidesign/bck2brwsr/vmtest/Compare.java Tue Feb 26 14:55:55 2013 +0100 @@ -24,7 +24,7 @@ /** Can be applied on a method that yields a return value. * Together with {@link VMTest#create} it can be used to write - * methods which are executed in real as well as JavaScript VMs and + * methods which are executed in real VM as well as JavaScript VMs and * their results are compared. * * @author Jaroslav Tulach @@ -32,4 +32,14 @@ @Retention(RetentionPolicy.RUNTIME) @Target(ElementType.METHOD) public @interface Compare { + /** Specifies whether the system should internal JavaScript interpreter + * as available via {@link javax.script.ScriptEngine}. Defaults to true, + * but in some situations (benchmarking comes to my mind), one may set this + * to false. In such case only browsers provided via + * vmtest.brwsrs property are used. For example + * "vmtest.brwsrs=firefox,google-chrome" would run the test + * in HotSpot VM, firefox and chrome and would compare the results. + * @return + */ + boolean scripting() default true; }