Skip to content

Simplify GC.drawImage() test with applied transformation#3268

Merged
HeikoKlare merged 1 commit intoeclipse-platform:masterfrom
HeikoKlare:test-gc-drawimagewithtransform-macos
Apr 24, 2026
Merged

Simplify GC.drawImage() test with applied transformation#3268
HeikoKlare merged 1 commit intoeclipse-platform:masterfrom
HeikoKlare:test-gc-drawimagewithtransform-macos

Conversation

@HeikoKlare
Copy link
Copy Markdown
Contributor

The GC test case for drawing images with a transformation applied has an unnecessarily complex assertion. It uses GC's copyArea operation to extract certain parts of a drawing with different transformations applied and compares them with each other. This makes the test implicitly rely on a proper implementation of copyArea(), which should actually be tested independently.

This change adapts the test to just create a reference image without any transformations and the actual image created with transforms applied.

This is motivated by copyArea() actually being broken on macOS for zoom != 100% as revealed by: #3246

The GC test case for drawing images with a transformation applied has an
unnecessarily complex assertion. It uses GC's copyArea operation to
extract certain parts of a drawing with different transformations
applied and compares them with each other. This makes the test
implicitly rely on a proper implementation of copyArea(), which should
actually be tested independently.

This change adapts the test to just create a reference image without any
transformations and the actual image created with transforms applied.
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 24, 2026

Test Results

  182 files  ±0    182 suites  ±0   26m 45s ⏱️ +12s
4 723 tests ±0  4 700 ✅ ±0   23 💤 ±0  0 ❌ ±0 
6 812 runs  ±0  6 647 ✅ ±0  165 💤 ±0  0 ❌ ±0 

Results for commit db0b8eb. ± Comparison against base commit aa1dbb8.

♻️ This comment has been updated with latest results.

@HeikoKlare HeikoKlare marked this pull request as ready for review April 24, 2026 15:54
@HeikoKlare HeikoKlare merged commit a9526c3 into eclipse-platform:master Apr 24, 2026
31 of 32 checks passed
@HeikoKlare HeikoKlare deleted the test-gc-drawimagewithtransform-macos branch April 24, 2026 18:05
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.

1 participant