[PR #13092] [MERGED] Fix various unit/feature test bugs #29378

Open
opened 2026-01-31 09:34:32 +00:00 by claunia · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/microsoft/terminal/pull/13092
Author: @lhecker
Created: 5/13/2022
Status: Merged
Merged: 5/13/2022
Merged by: @undefined

Base: mainHead: dev/lhecker/4015-split1


📝 Commits (1)

  • 68fb6c2 Fix various unit/feature test bugs

📊 Changes

5 files changed (+25 additions, -18 deletions)

View changed files

📝 src/host/ft_host/API_DimensionsTests.cpp (+8 -2)
📝 src/host/ft_host/API_FontTests.cpp (+2 -2)
📝 src/host/ft_host/InitTests.cpp (+2 -0)
📝 src/terminal/adapter/ut_adapter/inputTest.cpp (+1 -1)
📝 src/terminal/parser/ut_parser/InputEngineTest.cpp (+12 -13)

📄 Description

This commit fixes various bugs in our unit/feature test suite:

  • 2 tests failed at 150% scale.
  • The "null key" (@ on a US keyboard) isn't necessarily Shift+2.
    The proper way to get it is with LOBYTE(VkKeyScanW(0))
  • InputEngineTest::C0Test never worked as it overwrote
    the loop variable, exiting the loop early

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/microsoft/terminal/pull/13092 **Author:** [@lhecker](https://github.com/lhecker) **Created:** 5/13/2022 **Status:** ✅ Merged **Merged:** 5/13/2022 **Merged by:** [@undefined](undefined) **Base:** `main` ← **Head:** `dev/lhecker/4015-split1` --- ### 📝 Commits (1) - [`68fb6c2`](https://github.com/microsoft/terminal/commit/68fb6c21c62f8889e33e75f8c131ed24db5905ea) Fix various unit/feature test bugs ### 📊 Changes **5 files changed** (+25 additions, -18 deletions) <details> <summary>View changed files</summary> 📝 `src/host/ft_host/API_DimensionsTests.cpp` (+8 -2) 📝 `src/host/ft_host/API_FontTests.cpp` (+2 -2) 📝 `src/host/ft_host/InitTests.cpp` (+2 -0) 📝 `src/terminal/adapter/ut_adapter/inputTest.cpp` (+1 -1) 📝 `src/terminal/parser/ut_parser/InputEngineTest.cpp` (+12 -13) </details> ### 📄 Description This commit fixes various bugs in our unit/feature test suite: * 2 tests failed at 150% scale. * The "null key" (@ on a US keyboard) isn't necessarily Shift+2. The proper way to get it is with `LOBYTE(VkKeyScanW(0))` * `InputEngineTest::C0Test` never worked as it overwrote the loop variable, exiting the loop early --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
claunia added the pull-request label 2026-01-31 09:34:32 +00:00
Sign in to join this conversation.
No Label pull-request
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#29378