Skip to content

Commit 8c257d0

Browse files
committed
Add light/dark screenshot tests and references
Split many existing screenshot tests into light and dark variants and add corresponding reference bitmaps. Renamed several reference files to *_dark/_light and added new BMP references for charging, alerts, temps, battery, armed states, ESC disconnected, high power/altitude, etc. Refactored test/test_screenshots.cpp: added new test cases for light/dark modes, alert/temperature scenarios, helpers save_and_compare and render_splash, and improved splash rendering to support dark mode. Tests now generate initial references when missing and save diff images on regression. Binary screenshot files were added/renamed under test/test_screenshots/reference/.
1 parent 2cac54a commit 8c257d0

25 files changed

Lines changed: 297 additions & 85 deletions

test/test_screenshots/reference/main_armed_cruising.bmp renamed to test/test_screenshots/reference/main_armed_cruising_dark.bmp

File renamed without changes.
60.1 KB
Binary file not shown.

test/test_screenshots/reference/main_armed_flying.bmp renamed to test/test_screenshots/reference/main_armed_flying_dark.bmp

File renamed without changes.
60.1 KB
Binary file not shown.
60.1 KB
Binary file not shown.
File renamed without changes.
60.1 KB
Binary file not shown.
60.1 KB
Binary file not shown.

test/test_screenshots/reference/main_esc_disconnected.bmp renamed to test/test_screenshots/reference/main_esc_disconnected_dark.bmp

File renamed without changes.
60.1 KB
Binary file not shown.

0 commit comments

Comments
 (0)