wxMaxima
Loading...
Searching...
No Matches
Macros | Functions
test_DiffScrollSync.cpp File Reference

Unit tests for the diff viewer's scroll-synchronization geometry (ComputeSyncedScrollY). More...

#include "dialogs/DiffScrollSync.cpp"
#include <catch2/catch.hpp>
Include dependency graph for test_DiffScrollSync.cpp:

Functions

 SCENARIO ("ComputeSyncedScrollY keeps identical panes locked together")
 
 SCENARIO ("ComputeSyncedScrollY aligns panes whose cells differ in size")
 
 SCENARIO ("ComputeSyncedScrollY reports 'no anchor' when it cannot align")
 
 SCENARIO ("ComputeSyncedScrollY never returns a negative scroll position")
 
int main (int argc, char *argv[])
 

Detailed Description

Unit tests for the diff viewer's scroll-synchronization geometry (ComputeSyncedScrollY).

The math is GUI-free so it can be exercised directly, unlike the live scroll events it normally consumes.