mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
cleanup, print motivating message on success
This commit is contained in:
@@ -270,8 +270,8 @@ public class PlatformTestUtil {
|
||||
UIUtil.dispatchAllInvocationEvents();
|
||||
|
||||
long start = System.currentTimeMillis();
|
||||
boolean sleptAlready = false;
|
||||
try {
|
||||
boolean sleptAlready = false;
|
||||
while (!alarmInvoked2.get()) {
|
||||
AtomicBoolean laterInvoked = new AtomicBoolean();
|
||||
ApplicationManager.getApplication().invokeLater(() -> laterInvoked.set(true));
|
||||
@@ -617,6 +617,9 @@ public class PlatformTestUtil {
|
||||
int percentage = (int)(100.0 * (duration - expectedOnMyMachine) / expectedOnMyMachine);
|
||||
logMessage += ": " + "\u001B[31;1m " + percentage + "% longer" + "\u001B[0m";
|
||||
}
|
||||
else {
|
||||
logMessage += " NOT!";
|
||||
}
|
||||
logMessage +=
|
||||
"\n Expected: " + formatTime(expectedOnMyMachine) +
|
||||
"\n Actual: " + formatTime(duration) +
|
||||
|
||||
Reference in New Issue
Block a user