Skip to content

Conversation

HeikoKlare
Copy link
Contributor

This adds test cases for the GC#drawImage(ImageIIII) method to draw a scaled version of the given image. With the introduction of the ImageDataAtSizeProvider, an image can be provided at the desired size instead of rescaling the best fitting zoomed image. The added tests cover those use cases and ensure that based on the kind of ImageDataProvider the appropriately scaled data is used.

The tests for the ImageDataAtSizeProvider are limited to Windows until the implementation is extended to GTK and Cocoa:

Copy link
Contributor

github-actions bot commented Oct 14, 2025

Test Results

  115 files  ±0    115 suites  ±0   12m 14s ⏱️ +23s
4 554 tests +7  4 538 ✅ +6  16 💤 +1  0 ❌ ±0 
  311 runs  ±0    308 ✅ ±0   3 💤 ±0  0 ❌ ±0 

Results for commit 77c5ac1. ± Comparison against base commit 4df1e42.

♻️ This comment has been updated with latest results.

@HeikoKlare HeikoKlare force-pushed the tests-imagedataatsizeprovider branch 3 times, most recently from e8ad5ea to 1ef7e32 Compare October 14, 2025 11:55
@HeikoKlare HeikoKlare marked this pull request as ready for review October 14, 2025 12:17
@HeikoKlare HeikoKlare force-pushed the tests-imagedataatsizeprovider branch 4 times, most recently from d924abc to bf8a1b0 Compare October 15, 2025 11:08
This adds test cases for the GC#drawImage(ImageIIII) method to draw a
scaled version of the given image. With the introduction of the
ImageDataAtSizeProvider, an image can be provided at the desired size
instead of rescaling the best fitting zoomed image. The added tests
cover those use cases and ensure that based on the kind of
ImageDataProvider the appropriately scaled data is used.

The tests for the ImageDataAtSizeProvider are limited to Windows until
the implementation is extended to GTK and Cocoa.
@HeikoKlare HeikoKlare force-pushed the tests-imagedataatsizeprovider branch from bf8a1b0 to 77c5ac1 Compare October 15, 2025 13:42
@HeikoKlare HeikoKlare merged commit 6d33db1 into eclipse-platform:master Oct 15, 2025
17 checks passed
@HeikoKlare HeikoKlare deleted the tests-imagedataatsizeprovider branch October 15, 2025 14:02
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