Skip to content

Conversation

@amartya4256
Copy link
Contributor

Some of the tests in WidgetWin32Tests assert the size of the controls after DPI_CHANGE. The tests work fine since theres no updateLayout called but its deffered to be executed after the thread is free and hence the controls size are unaffected. However this is risky and layouting can make the values arbitrary and the tests can fail. Hence, we simply test the absolute values without using any Layout in this PR.

Some of the tests in WidgetWin32Tests assert the size of the
controls after DPI_CHANGE. The tests work fine since theres
no updateLayout called but its deffered to be executed after
the thread is free and hence the controls size are unaffected.
However this is risky and layouting can make the values arbitrary and
the tests can fail. Hence, we simply test the absolute values
without using any Layout in this commit.
@akurtakov
Copy link
Member

I have missed when this folder was committed but shouldn't it be in https://github.com/eclipse-platform/eclipse.platform.swt/tree/master/tests/org.eclipse.swt.tests.win32 ?

@github-actions
Copy link
Contributor

Test Results

  118 files  ±0    118 suites  ±0   10m 51s ⏱️ - 1m 24s
4 440 tests ±0  4 423 ✅ +2  17 💤 ±0  0 ❌  - 2 
  298 runs  ±0    294 ✅ +2   4 💤 ±0  0 ❌  - 2 

Results for commit 04ff32a. ± Comparison against base commit d5273ee.

@HeikoKlare
Copy link
Contributor

They were introduce 1,5 years ago or so. They are unit tests and no component tests (testing not at bundle API level), which is why they are not in the separate Win32 test bundle but in the Win32 fragment.

@akurtakov
Copy link
Member

I see. Thanks for the explanation.

@HeikoKlare HeikoKlare merged commit 810cbcc into eclipse-platform:master Sep 25, 2025
17 checks passed
@HeikoKlare HeikoKlare deleted the amartya4256/fix_win32Widget_test branch September 25, 2025 13:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fix specific WidgetWin32Tests to not use Layout

3 participants