Skip to content

Size the editor before unified diff pixel assertions - #3047

Merged
tobiasmelcher merged 1 commit into
eclipse-platform:masterfrom
tobiasmelcher:fix-unified-diff-test-layout-3045
Oct 28, 2026
Merged

tobiasmelcher merged 1 commit into
eclipse-platform:masterfrom
tobiasmelcher:fix-unified-diff-test-layout-3045

Conversation

@tobiasmelcher

@tobiasmelcher tobiasmelcher commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

The central test workbench can leave the editor with a zero-sized client area, causing both delimiter rendering tests to fail when creating their off-screen image. Give the widget an explicit size during the pixel assertion and restore its original size afterward.

Reproduced both reported exceptions with a zero-sized editor. With the fix, all 46 UnifiedDiffManagerTest tests pass both with a zero-sized editor and with the normal editor layout.

Fixes #3045

The test workbench may leave the editor with a zero-sized client area. Set an explicit widget size while rendering the delimiter assertions and restore the previous size afterward.

Fixes eclipse-platform#3045
@github-actions

github-actions Bot commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

Test Results

    54 files  ±0      54 suites  ±0   37m 19s ⏱️ +56s
 4 909 tests ±0   4 887 ✅ ±0   22 💤 ±0  0 ❌ ±0 
12 618 runs  ±0  12 464 ✅ ±0  154 💤 ±0  0 ❌ ±0 

Results for commit 1786a31. ± Comparison against base commit 1b7b555.

♻️ This comment has been updated with latest results.

@tobiasmelcher

Copy link
Copy Markdown
Contributor Author

Let us see if this change fixes the i-build run. Please let me know if you have some doubts and if this change needs to be reverted.

@tobiasmelcher
tobiasmelcher merged commit 67f278c into eclipse-platform:master Oct 28, 2026
24 of 26 checks passed
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.

UnifiedDiffManager tests fail in I-Build

1 participant