Skip to content

Pr 1117 test - #1128

Closed
merks wants to merge 2 commits into
eclipse-platform:masterfrom
merks:pr-1117-test
Closed

merks wants to merge 2 commits into
eclipse-platform:masterfrom
merks:pr-1117-test

Conversation

@merks

@merks merks commented Mar 21, 2024

Copy link
Copy Markdown
Contributor

No description provided.

Newer versions of macOS introduced a new style of table rows with a
padding that is larger than previously seen. This broke item height
computations (eclipse-platform#677). An attempt to fix this had the unexpected side
effect that now some UI elements in Eclipse IDE (and other apps with
"-Dorg.eclipse.swt.internal.carbon.smallFonts" enabled),
eclise.platform.ui eclipse-platform#1674, and it also broke compatibility with older
versions of macOS that did not have the additional padding.

This change reverts the previous fix, and adds logic to enforce the
native item height by default, without making assumption about the exact
height (which varies with "smallFonts", for example).

The setting can be controlled by a new System property,
org.eclipse.swt.internal.cocoa.useNativeItemHeight, that, if set to
false, overrules the default. This allows apps to bring brack the old
macOS behavior.

Fixes eclipse-platform/eclipse.platform.ui#1674
Fixes eclipse-platform#677
There are scenarios (especially with Cocoa on modern macOS) where the
native item height may not make a difference for 8 vs. 12 font sizes,
which may cause the test to fail.

Increase the font size of the second font such that this corner case no
longer matters.
@github-actions

Copy link
Copy Markdown
Contributor

Test Results

   298 files   -  1     298 suites   - 1   5m 49s ⏱️ -54s
 4 065 tests  - 34   4 059 ✅  - 32   5 💤  - 3  1 ❌ +1 
12 175 runs   - 34  12 102 ✅  - 32  72 💤  - 3  1 ❌ +1 

For more details on these failures, see this check.

Results for commit d93e98c. ± Comparison against base commit e87e11e.

This pull request removes 34 tests.
org.eclipse.swt.tests.win32.Test_org_eclipse_swt_dnd_DND ‑ testByteArrayTransfer
org.eclipse.swt.tests.win32.Test_org_eclipse_swt_dnd_DND ‑ testFileTransfer
org.eclipse.swt.tests.win32.Test_org_eclipse_swt_dnd_DND ‑ testHtmlTransfer
org.eclipse.swt.tests.win32.Test_org_eclipse_swt_dnd_DND ‑ testImageTransfer_fromCopiedImage
org.eclipse.swt.tests.win32.Test_org_eclipse_swt_dnd_DND ‑ testImageTransfer_fromImage
org.eclipse.swt.tests.win32.Test_org_eclipse_swt_dnd_DND ‑ testImageTransfer_fromImageData
org.eclipse.swt.tests.win32.Test_org_eclipse_swt_dnd_DND ‑ testImageTransfer_fromImageDataFromImage
org.eclipse.swt.tests.win32.Test_org_eclipse_swt_dnd_DND ‑ testRtfTransfer
org.eclipse.swt.tests.win32.Test_org_eclipse_swt_dnd_DND ‑ testTextTransfer
org.eclipse.swt.tests.win32.Test_org_eclipse_swt_dnd_DND ‑ testUrlTransfer
…

@merks merks closed this Mar 21, 2024
@merks
merks deleted the pr-1117-test branch March 21, 2024 10:20
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.

2 participants