RFR: 8319555: [TestBug] Utility for creating instruction window for manual tests [v3]
Andy Goryachev
angorya at openjdk.org
Mon Apr 8 15:07:10 UTC 2024
On Mon, 8 Apr 2024 14:48:35 GMT, Andy Goryachev <angorya at openjdk.org> wrote:
>> ## ManualTestWindow
>>
>> This facility provides a framework for manual tests to display test instructions, test pane, and Pass/Fail buttons.
>>
>> A simple test would look like this:
>>
>>
>> public class SampleManualTest {
>> public static void main(String[] args) throws Exception {
>> ManualTestWindow.builder().
>> title("Sample Manual Test").
>> instructions(
>> """
>> Provide
>> multi-line instructions here.
>> """
>> ).
>> ui(() -> createTestUI()).
>> buildAndRun();
>> }
>>
>> private static Node createTestUI() {
>> return new Label("Test UI");
>> }
>> }
>>
>>
>> Resulting application window:
>>
>> 
>>
>> Readme:
>>
>> https://github.com/openjdk/jfx/blob/1cc095049be3773e1211ad570eb2285f08f25cec/tests/manual/util/README.md
>>
>> @prrace 's test EmojiTest has been converted to use the new test window as a demonstration (also fixed the Eclipse project so it works now).
>>
>> Q: What other features can be added to the test window?
>>
>> Edit: the sources are left in their original place at the root of the project.
>
> Andy Goryachev has updated the pull request incrementally with one additional commit since the last revision:
>
> sources moved back
Moved the sources back to the root.
Eclipse has a weird behavior when it comes to modular projects or mixing modular and classpath sources: the project which has been modified (or converted to modular or back) needs to be closed and re-opened, otherwise Eclipse loses its marbles. Both 2023-06 and 2024-03 versions seem to exhibit this behavior.
-------------
PR Comment: https://git.openjdk.org/jfx/pull/1413#issuecomment-2043003366
More information about the openjfx-dev
mailing list