Checks external-camera dialog visibility and flight readout values, references and units.
Subsystem: GUI, controls, inventory and player interaction
Fixture/harness: externalcameraoverlaytests
Setup: The standalone ExternalCameraOverlayTests harness owns the inputs, local helpers and assertion sink used by the case files below. Graphics setup uses NativeUiTest11.
Build/entry point: Tests/ExternalCameraOverlayTests.vcxproj; declared configurations: Debug|Win32, Release|Win32, Release|x64.
ExternalCameraOverlayTests.cpp
Source: Tests/ExternalCameraOverlayTests.cpp
Check Dialog Visibility
Fixture: External Camera Overlay tests
Case symbol: CheckDialogVisibility
Source: Tests/ExternalCameraOverlayTests.cpp:19
- Test
- Check Dialog Visibility: staying external respects close; keymap does not reopen a closed dialog; keymap/time lapse temporarily hides dialog.
Source check messages (including original failure wording)
-
cockpit starts hidden
-
external entry opens dialog
-
staying external respects close
-
keymap does not reopen a closed dialog
-
keymap/time lapse temporarily hides dialog
-
leaving temporary overlay restores open dialog
-
staying external respects minimize all
-
leaving external clears pending restore
-
entry respects minimize all
-
restored external dialog stays open
-
entering external while keymap is open stays hidden
-
entry under keymap opens when keymap closes
Check Flight Readouts
Fixture: External Camera Overlay tests
Case symbol: CheckFlightReadouts
Source: Tests/ExternalCameraOverlayTests.cpp:53
- Test
- Check Flight Readouts: altitude value, reference, and units agree at flight boundaries; speed source, label, and units agree at flight boundaries.
Source check messages (including original failure wording)
-
altitude value, reference, and units agree at flight boundaries
-
speed source, label, and units agree at flight boundaries
Entry-point checks
Fixture: External Camera Overlay tests
Case symbol: main
Source: Tests/ExternalCameraOverlayTests.cpp:106
- Test
- Entry-point checks: heading wraps without showing 360; view cone uses flipped projection and narrows as zoom increases; caller sprite transform preserved.
Source check messages (including original failure wording)
-
heading wraps without showing 360
-
view cone uses flipped projection and narrows as zoom increases
-
create sprite
-
create overlay fonts
-
load shared dialog background
-
set viewport
-
clear background
-
begin scene
-
create mock GUI
-
lock mock GUI
-
begin GUI pass
-
draw opaque GUI window
-
end GUI pass
-
begin sprite
-
draw shared dialog background
-
caller sprite transform preserved
-
caller scissor state preserved
-
create foreground dialog
-
lock foreground dialog
-
draw foreground dialog
-
flush foreground dialog
-
end sprite
-
end scene
-
content follows dialog position and scale without changing size
-
overlay rendered visible pixels
-
unchanged dialog contents retain identical brightness
-
camera controls update graphic indicators
-
camera motion does not change vehicle telemetry
-
positive craft pitch lowers the horizon and negative pitch raises it
-
positive bus roll moves sky left, matching the cockpit sprite's inverse rotation
-
positive bus roll moves the bank index left with the ball
-
negative bus roll moves sky right, matching the cockpit sprite's inverse rotation
-
negative bus roll moves the bank index right with the ball
-
inverted flight reverses sky and ground
-
vertical flight remains a bounded, unambiguous hemisphere
-
missing or invalid craft attitude displays unavailable rather than false level flight
-
shared dialog background composites on top of an opaque GUI window
-
dialog focus order is respected
-
moving dialog translates all instruments and text together
-
translated bezel differs only at a few rasterized edge pixels