ko/bck2brwsr/src/test/java/org/apidesign/bck2brwsr/ko2brwsr/Bck2BrwsrJavaScriptBodyTest.java
author Jaroslav Tulach <jaroslav.tulach@apidesign.org>
Wed, 28 May 2014 10:47:18 +0200
branchclosure
changeset 1609 752f48257d4a
child 1676 87f66a77adf9
permissions -rw-r--r--
All classes loaded through the 'vm' object will have 'invoke' method that can be used to invoke static methods like main(String[]), so our examples no longer need to rely on initialization in static initializers.
jaroslav@1422
     1
/**
jaroslav@1422
     2
 * Back 2 Browser Bytecode Translator
jaroslav@1422
     3
 * Copyright (C) 2012 Jaroslav Tulach <jaroslav.tulach@apidesign.org>
jaroslav@1422
     4
 *
jaroslav@1422
     5
 * This program is free software: you can redistribute it and/or modify
jaroslav@1422
     6
 * it under the terms of the GNU General Public License as published by
jaroslav@1422
     7
 * the Free Software Foundation, version 2 of the License.
jaroslav@1422
     8
 *
jaroslav@1422
     9
 * This program is distributed in the hope that it will be useful,
jaroslav@1422
    10
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
jaroslav@1422
    11
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
jaroslav@1422
    12
 * GNU General Public License for more details.
jaroslav@1422
    13
 *
jaroslav@1422
    14
 * You should have received a copy of the GNU General Public License
jaroslav@1422
    15
 * along with this program. Look for COPYING file in the top folder.
jaroslav@1422
    16
 * If not, see http://opensource.org/licenses/GPL-2.0.
jaroslav@1422
    17
 */
jaroslav@1422
    18
package org.apidesign.bck2brwsr.ko2brwsr;
jaroslav@1422
    19
jaroslav@1422
    20
import org.apidesign.bck2brwsr.vmtest.VMTest;
jaroslav@1422
    21
import org.apidesign.html.json.tck.JavaScriptTCK;
jaroslav@1422
    22
import org.apidesign.html.json.tck.KOTest;
jaroslav@1422
    23
import org.testng.annotations.Factory;
jaroslav@1422
    24
jaroslav@1422
    25
/**
jaroslav@1422
    26
 *
jaroslav@1422
    27
 * @author Jaroslav Tulach <jtulach@netbeans.org>
jaroslav@1422
    28
 */
jaroslav@1422
    29
public class Bck2BrwsrJavaScriptBodyTest extends JavaScriptTCK {
jaroslav@1422
    30
    @Factory public static Object[] tests() {
jaroslav@1422
    31
        return VMTest.newTests().withClasses(testClasses())
jaroslav@1422
    32
            .withTestAnnotation(KOTest.class).build();
jaroslav@1422
    33
    }
jaroslav@1422
    34
}