On Tue, 3 Dec 2024 10:27:22 GMT, Thiago Milczarek Sayao <tsa...@openjdk.org> 
wrote:

>> The bug happened when setting only width or height (not both) on a Stage 
>> that was oriented by the view size.
>> 
>> The fix just uses the previous value for width/height if not set.
>> 
>> The test class is designed to accept more test cases in the "mixed sizing" 
>> scenarios.
>
> Thiago Milczarek Sayao has updated the pull request incrementally with one 
> additional commit since the last revision:
> 
>   Add test for Height

Good timing with the height test, I was mid-verification, about to suggest 
adding it :)

On my end the test does pass on Ubuntu 22.04 with Xorg and with the fix. 
However, without the fix, the tests still succeed despite the GTK assertions 
showing up:


> gradle --info -PUSE_ROBOT=true -PFULL_TEST=true :systemTests:test --tests 
> StageMixedSizeTest
...
Successfully started process 'Gradle Test Executor 479'


(java:29375): Gtk-CRITICAL **: 11:38:34.936: gtk_window_resize: assertion 
'width > 0' failed

(java:29375): Gtk-CRITICAL **: 11:38:36.596: gtk_window_resize: assertion 
'height > 0' failed
Gradle Test Executor 479 finished executing tests.


Not having an actually failing test when there's a problem kind of invalidates 
the reason for tests to exist, these messages will probably be drowned in the 
sea of log messages. Do you think there is a way to capture those and fail the 
test (even as a follow-up)?

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

PR Review: https://git.openjdk.org/jfx/pull/1654#pullrequestreview-2475272865

Reply via email to