Adapt test for Gradle

This commit is contained in:
Volker Berlin 2023-02-28 20:02:50 +01:00
parent 3c2e431a9c
commit 042927f9c4
No known key found for this signature in database
GPG Key ID: 988423EF815BE4CB

View File

@ -53,10 +53,10 @@ public class ThreadTest extends AbstractBaseTest {
static class TestClass {
@Export
static DOMString currentThreadName() {
static boolean currentThreadName() {
Thread thread = Thread.currentThread();
String name = thread.getName();
return JSObject.domString( name );
String name = thread.getName(); // with Gradle the name is "Test worker"
return name.isEmpty();
}
@Export