Skip to content

Add characterization tests for terminal scrolling behavior#2701

Merged
vogella merged 1 commit into
eclipse-platform:masterfrom
vogella:feature/terminal-scrolling-tests
Jun 3, 2026
Merged

Add characterization tests for terminal scrolling behavior#2701
vogella merged 1 commit into
eclipse-platform:masterfrom
vogella:feature/terminal-scrolling-tests

Conversation

@vogella
Copy link
Copy Markdown
Contributor

@vogella vogella commented Jun 3, 2026

Preparation work for #2680 to ensure stability.

These add JUnit tests that lock the current scrolling behavior of the VT100 terminal emulator before any change is made to how scroll regions interact with the scroll-back history. Three of them are regression guards (full-window newline grows history, a scroll region with a non-top margin discards its top line in place, and a reverse line feed scrolls a region down in place) that must keep passing through the upcoming change. The fourth documents the current behavior of a top-anchored scroll region, which the planned fix for issue 2680 is expected to change so that the scrolled-off line is kept in the scroll-back instead of being discarded.

No production code is changed.

Preparation work for eclipse-platform#2680
to ensure stability before changing how scroll regions interact with the
scroll-back history.

These lock the current behavior of VT100EmulatorBackend:

- a newline in the full window grows the history (must be preserved),
- a newline at the bottom of a scroll region with a non-top margin scrolls in
  place and discards the top line (must be preserved),
- a reverse line feed at the top of a region scrolls down in place (must be
  preserved),
- a newline at the bottom of a top-anchored region currently discards the top
  line; this documents the status quo that the planned fix will change so the
  line is added to the scroll-back instead.

No production code changes.
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jun 3, 2026

Test Results

    54 files  ± 0      54 suites  ±0   36m 0s ⏱️ +23s
 4 671 tests + 4   4 649 ✅ + 4   22 💤 ±0  0 ❌ ±0 
11 907 runs  +12  11 754 ✅ +12  153 💤 ±0  0 ❌ ±0 

Results for commit 3ded753. ± Comparison against base commit 859044c.

@vogella vogella merged commit bb87c2e into eclipse-platform:master Jun 3, 2026
18 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.

1 participant