wxMaxima
Loading...
Searching...
No Matches
Data Structures | Macros | Functions
test_AdaptiveSplitter.cpp File Reference

Tests for AdaptiveSplitter, the splitter between the configuration dialog's style settings and its sample worksheet. More...

#include <wx/app.h>
#include <wx/config.h>
#include <wx/fileconf.h>
#include <wx/filename.h>
#include <wx/frame.h>
#include <wx/log.h>
#include <wx/panel.h>
#include "dialogs/AdaptiveSplitter.h"
#include <catch2/catch.hpp>
Include dependency graph for test_AdaptiveSplitter.cpp:

Data Structures

class  TestApp
 

Functions

 wxDECLARE_APP (TestApp)
 
 SCENARIO ("ChooseSplitMode gives the preview the larger area")
 
 SCENARIO ("AdaptiveSplitter picks its direction from its size")
 
 SCENARIO ("AdaptiveSplitter keeps a sash the user moved")
 
 SCENARIO ("AdaptiveSplitter remembers the sash across sessions")
 
int main (int argc, char **argv)
 

Detailed Description

Tests for AdaptiveSplitter, the splitter between the configuration dialog's style settings and its sample worksheet.

The splitter puts the preview below the settings or beside them, whichever leaves it more room, keeps a sash the user moved, and remembers it across dialog sessions. These tests check the direction choice as plain geometry and then drive a real splitter through resizes and sash moves.