Checks cargo manifest scrolling, selection visibility and repeated-key navigation.
Subsystem: GUI, controls, inventory and player interaction
Fixture/harness: cargomanifesttests
Setup: The standalone CargoManifestTests harness owns the inputs, local helpers and assertion sink used by the case files below.
Build/entry point: Tests/CargoManifestTests.vcxproj; declared configurations: Debug|Win32.
CargoManifestTests.cpp
Source: Tests/CargoManifestTests.cpp
Check Window
Fixture: Cargo Manifest tests
Case symbol: CheckWindow
Source: Tests/CargoManifestTests.cpp:30
- Test
- Check Window: headings remain pinned; selection stays visible; rows stop above shortcuts.
Source check messages (including original failure wording)
-
headings remain pinned
-
selection stays visible
-
rows stop above shortcuts
-
body never overwrites headings
Check Key Repeat
Fixture: Cargo Manifest tests
Case symbol: CheckKeyRepeat
Source: Tests/CargoManifestTests.cpp:43
- Test
- Check Key Repeat: press moves immediately to Bay 18; held key is consumed during initial delay; half-second repeat scrolls from Bay 18 to Baggage.
Source check messages (including original failure wording)
-
press moves immediately to Bay 18
-
press frame does not repeat
-
held key is consumed during initial delay
-
half-second repeat scrolls from Bay 18 to Baggage
-
wait for the Windows repeat interval
-
second repeat follows about 33 ms later
-
repeat clamps at the end of the manifest
-
opposite direction moves immediately
-
direction change restarts the Windows delay
-
up repeats after its own delay
-
up uses the fast Windows repeat rate
-
releasing the active arrow cancels repeat
-
older held arrow does not resume without a fresh press
-
repress moves immediately
-
releasing Shift cancels repeat
-
pressing Shift again cannot revive cancelled repeat
-
unavailable input cancels without moving
-
restoring input requires a fresh navigation press
-
changing pages cancels repeat
-
Use never arms navigation repeat
-
Swap never arms navigation repeat
-
unshifted arrows never arm navigation repeat
-
keypad navigation moves immediately
-
keypad navigation repeats
-
keypad release cancels repeat
-
long frame produces at most one repeat
-
no queued repeat burst after a stall
-
empty manifest cancels repeat safely
Check Windows Repeat Settings
Fixture: Cargo Manifest tests
Case symbol: CheckWindowsRepeatSettings
Source: Tests/CargoManifestTests.cpp:110
- Test
- Check Windows Repeat Settings: Windows fast repeat retains its rate across frame rates; shortest Windows delay waits before repeating; shortest Windows delay is 250 ms.
Source check messages (including original failure wording)
-
Windows fast repeat retains its rate across frame rates
-
shortest Windows delay waits before repeating
-
shortest Windows delay is 250 ms
-
longest Windows delay still waits one second
-
longest Windows delay repeats at one second
-
slowest Windows repeat waits 400 ms between moves
-
slowest Windows repeat follows the configured rate
Entry-point checks
Fixture: Cargo Manifest tests
Case symbol: main
Source: Tests/CargoManifestTests.cpp:150
- Test
- Entry-point checks: Mammoth footer matches the cockpit view; initial view indicates content below only; Bay 18 retains its real bay index.
Source check messages (including original failure wording)
-
Mammoth footer matches the cockpit view
-
initial view indicates content below only
-
initial view ends at Bay 18
-
up at title stays at title
-
skip headings and empty weight
-
Bay 18 retains its real bay index
-
Bay 18 fits without scrolling
-
Bay 18 to Baggage scrolls exactly three rows
-
first three body rows disappear
-
Baggage becomes the bottom row
-
Use, Swap and Transfer retain the personal inventory index
-
down past inventory reveals cash and total without an empty trailing page
-
down at total stays at total
-
returning to title restores MANIFEST and the first rows
-
personal item order
-
vehicle item order
-
inventory exceeds old 64-row limit
-
shrinking list clamps selection and offset
-
empty list is safe before first render
-
short manifests need no scrolling indicators
-
shorter MFD fits both shortcuts and MORE below them