author | Jaroslav Tulach <jaroslav.tulach@apidesign.org> |
Tue, 24 Feb 2015 11:12:53 +0100 | |
changeset 1787 | ea12a3bb4b33 |
parent 1749 | 0417c5f323fd |
child 1799 | 7601b9d64be6 |
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@1422 | 30 |
@Factory public static Object[] tests() { |
jaroslav@1749 | 31 |
final Class<?>[] arr = testClasses(); |
jaroslav@1749 | 32 |
for (int i = 0; i < arr.length; i++) { |
jaroslav@1749 | 33 |
if (arr[i].getSimpleName().startsWith("GC")) { |
jaroslav@1749 | 34 |
arr[i] = Object.class; |
jaroslav@1749 | 35 |
} |
jaroslav@1749 | 36 |
} |
jaroslav@1749 | 37 |
return VMTest.newTests().withClasses(arr) |
jaroslav@1422 | 38 |
.withTestAnnotation(KOTest.class).build(); |
jaroslav@1422 | 39 |
} |
jaroslav@1422 | 40 |
} |