author | Jaroslav Tulach <jaroslav.tulach@apidesign.org> |
Fri, 27 Feb 2015 18:55:06 +0100 | |
changeset 1799 | 7601b9d64be6 |
parent 1787 | ea12a3bb4b33 |
permissions | -rw-r--r-- |
jaroslav@1422 | 1 |
/** |
jaroslav@1422 | 2 |
* Back 2 Browser Bytecode Translator |
jaroslav@1787 | 3 |
* Copyright (C) 2012-2015 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@1676 | 21 |
import org.netbeans.html.json.tck.JavaScriptTCK; |
jaroslav@1676 | 22 |
import org.netbeans.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@1799 | 30 |
@Factory public static Object[] create() { |
jaroslav@1799 | 31 |
return VMTest.newTests(). |
jaroslav@1799 | 32 |
withClasses(tests()). |
jaroslav@1799 | 33 |
withClasses(Bck2BrwsrKnockoutImpl.createClasses()). |
jaroslav@1799 | 34 |
withLaunchers("bck2brwsr"). |
jaroslav@1799 | 35 |
withTestAnnotation(KOTest.class). |
jaroslav@1799 | 36 |
build(); |
jaroslav@1799 | 37 |
} |
jaroslav@1799 | 38 |
|
jaroslav@1799 | 39 |
static Class[] tests() { |
jaroslav@1749 | 40 |
final Class<?>[] arr = testClasses(); |
jaroslav@1749 | 41 |
for (int i = 0; i < arr.length; i++) { |
jaroslav@1749 | 42 |
if (arr[i].getSimpleName().startsWith("GC")) { |
jaroslav@1749 | 43 |
arr[i] = Object.class; |
jaroslav@1749 | 44 |
} |
jaroslav@1749 | 45 |
} |
jaroslav@1799 | 46 |
return arr; |
jaroslav@1422 | 47 |
} |
jaroslav@1422 | 48 |
} |