mirror of
https://github.com/i-net-software/JWebAssembly.git
synced 2025-03-25 07:27:52 +01:00
test for a primitive class name
This commit is contained in:
parent
a511e9b090
commit
4b581dd969
@ -62,6 +62,7 @@ public class StructsNonGC extends AbstractBaseTest {
|
|||||||
addParam( list, script, "integerClassName" );
|
addParam( list, script, "integerClassName" );
|
||||||
addParam( list, script, "classClassName" );
|
addParam( list, script, "classClassName" );
|
||||||
addParam( list, script, "classConst" );
|
addParam( list, script, "classConst" );
|
||||||
|
addParam( list, script, "intClassName" );
|
||||||
addParam( list, script, "branchWithObjectResult" );
|
addParam( list, script, "branchWithObjectResult" );
|
||||||
}
|
}
|
||||||
rule.setTestParameters( list );
|
rule.setTestParameters( list );
|
||||||
@ -211,6 +212,12 @@ public class StructsNonGC extends AbstractBaseTest {
|
|||||||
return JSObject.domString( clazz.getName() );
|
return JSObject.domString( clazz.getName() );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Export
|
||||||
|
static Object intClassName() {
|
||||||
|
Class<?> clazz = int.class; // Integer.TYPE;
|
||||||
|
return JSObject.domString( clazz.getName() );
|
||||||
|
}
|
||||||
|
|
||||||
@Export
|
@Export
|
||||||
static int branchWithObjectResult() {
|
static int branchWithObjectResult() {
|
||||||
Integer val1 = 42;
|
Integer val1 = 42;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user