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 { static class TestClass {
@Export @Export
static DOMString currentThreadName() { static boolean currentThreadName() {
Thread thread = Thread.currentThread(); Thread thread = Thread.currentThread();
String name = thread.getName(); String name = thread.getName(); // with Gradle the name is "Test worker"
return JSObject.domString( name ); return name.isEmpty();
} }
@Export @Export