On Thu, 26 Sep 2024 12:58:34 GMT, Alexey Ivanov <[email protected]> wrote:

> Provides a set of default layouts for manual test using multiple test UI 
> windows.
> 
> The initial implementation in the demo in #15721 was too complicated. After 
> looking at the simplified version used in #21180, I re-worked the layouts 
> into separate methods.
> 
> The layout methods are in `WindowLayouts` class next to `PassFailJFrame`. It 
> is not necessary to mention it explicitly in the `@build` jtreg tag.
> 
> The builder now provides new methods:
> 
> - `positionTestUIRightRow` positions the test UI windows in a row to the 
> right of the instruction frame. The top of the windows is aligned to that of 
> the instruction frame.
> - `positionTestUIRightColumn` positions the test UI windows in a column to 
> the right of the instruction frame. The top of the first window is aligned to 
> that of the instruction frame.
> - `positionTestUIRightColumnCentered` positions the test UI windows in a 
> column to the right of the instruction frame centering the stack of the 
> windows.
> - `positionTestUIBottomRow` positions the test UI windows in a row to the 
> bottom of the instruction frame. The left of the first window is aligned to 
> that of the instruction frame.
> - `positionTestUIBottomRowCentered` positions the test UI windows in a row to 
> the bottom of the instruction frame centering the row of the windows.
> - `positionTestUIBottomColumn` positions the test UI windows in a column to 
> the bottom of the instruction frame. The left of the first window is aligned 
> to that of the instruction frame.
> 
> If required, the test developer can provide a custom implementation.

This pull request has now been integrated.

Changeset: 85f04427
Author:    Alexey Ivanov <[email protected]>
URL:       
https://git.openjdk.org/jdk/commit/85f0442727201e0d36ed0a71d2199e602501c98d
Stats:     319 lines in 2 files changed: 315 ins; 0 del; 4 mod

8317116: Provide layouts for multiple test UI in PassFailJFrame

Reviewed-by: azvegint, prr

-------------

PR: https://git.openjdk.org/jdk/pull/21207

Reply via email to