Definition at line 32 of file TestUtil.java.
◆ waitForFocus()
- Parameters
-
| waitAction | if not null, Runnable shall wait TIME_SLICE ms, if appropriate |
- Returns
- True if the Window became the global focused Window within TIME_OUT
Definition at line 50 of file TestUtil.java.
◆ waitUntilClosed()
| static boolean com.jogamp.opengl.test.junit.util.TestUtil.waitUntilClosed |
( |
final boolean |
willClose, |
|
|
final TestUtil.WindowClosingListener |
closingListener, |
|
|
final Runnable |
waitAction |
|
) |
| throws InterruptedException |
|
static |
Wait until the window is closing within TIME_OUT.
- Parameters
-
| willClose | indicating that the window will close, hence this method waits for the window to be closed |
| waitAction | if not null, Runnable shall wait TIME_SLICE ms, if appropriate |
| wcl | the WindowClosingListener to determine whether the AWT or NEWT widget has been closed. It should be attached to the widget ASAP before any other listener, e.g. via addClosingListener(Object). The WindowClosingListener will be reset before attempting to close the widget. |
- Returns
- True if the Window is closing and closed (if willClose is true), each within TIME_OUT
- Exceptions
-
Definition at line 77 of file TestUtil.java.
◆ POLL_DIVIDER
| final int com.jogamp.opengl.test.junit.util.TestUtil.POLL_DIVIDER = 20 |
|
static |
◆ RETRY_NUMBER
| final int com.jogamp.opengl.test.junit.util.TestUtil.RETRY_NUMBER = 5 |
|
static |
◆ TIME_OUT
| final int com.jogamp.opengl.test.junit.util.TestUtil.TIME_OUT = 2000 |
|
static |
◆ TIME_SLICE
The documentation for this class was generated from the following file: