author | Jaroslav Tulach <jaroslav.tulach@apidesign.org> |
Tue, 14 Jun 2016 06:11:20 +0200 | |
branch | Libraries |
changeset 1977 | 46efebc7e220 |
parent 1787 | ea12a3bb4b33 |
permissions | -rw-r--r-- |
jaroslav@1423 | 1 |
/** |
jaroslav@1423 | 2 |
* Back 2 Browser Bytecode Translator |
jaroslav@1787 | 3 |
* Copyright (C) 2012-2015 Jaroslav Tulach <jaroslav.tulach@apidesign.org> |
jaroslav@1423 | 4 |
* |
jaroslav@1423 | 5 |
* This program is free software: you can redistribute it and/or modify |
jaroslav@1423 | 6 |
* it under the terms of the GNU General Public License as published by |
jaroslav@1423 | 7 |
* the Free Software Foundation, version 2 of the License. |
jaroslav@1423 | 8 |
* |
jaroslav@1423 | 9 |
* This program is distributed in the hope that it will be useful, |
jaroslav@1423 | 10 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
jaroslav@1423 | 11 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
jaroslav@1423 | 12 |
* GNU General Public License for more details. |
jaroslav@1423 | 13 |
* |
jaroslav@1423 | 14 |
* You should have received a copy of the GNU General Public License |
jaroslav@1423 | 15 |
* along with this program. Look for COPYING file in the top folder. |
jaroslav@1423 | 16 |
* If not, see http://opensource.org/licenses/GPL-2.0. |
jaroslav@1423 | 17 |
*/ |
jaroslav@1423 | 18 |
package org.apidesign.bck2brwsr.kofx; |
jaroslav@1423 | 19 |
|
jaroslav@1423 | 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@1423 | 23 |
import org.testng.annotations.Factory; |
jaroslav@1423 | 24 |
|
jaroslav@1423 | 25 |
/** |
jaroslav@1423 | 26 |
* |
jaroslav@1423 | 27 |
* @author Jaroslav Tulach <jtulach@netbeans.org> |
jaroslav@1423 | 28 |
*/ |
jaroslav@1423 | 29 |
public class JavaScriptBodyFXBrwsrTest extends JavaScriptTCK { |
jaroslav@1423 | 30 |
@Factory public static Object[] create() { |
jaroslav@1423 | 31 |
return VMTest.newTests(). |
jaroslav@1423 | 32 |
withLaunchers("fxbrwsr"). |
jaroslav@1933 | 33 |
withClasses(filterTestClasses()). |
jaroslav@1423 | 34 |
withTestAnnotation(KOTest.class).build(); |
jaroslav@1423 | 35 |
} |
jaroslav@1933 | 36 |
|
jaroslav@1933 | 37 |
private static Class[] filterTestClasses() { |
jaroslav@1933 | 38 |
Class[] arr = testClasses(); |
jaroslav@1933 | 39 |
for (int i = 0; i < arr.length; i++) { |
jaroslav@1933 | 40 |
if (arr[i].getName().contains("GCBodyTest")) { |
jaroslav@1933 | 41 |
arr[i] = Object.class; |
jaroslav@1933 | 42 |
} |
jaroslav@1933 | 43 |
} |
jaroslav@1933 | 44 |
return arr; |
jaroslav@1933 | 45 |
} |
jaroslav@1423 | 46 |
} |