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

Regression test for the Greek sidebar's line wrapping. More...

#include <wx/app.h>
#include <wx/bitmap.h>
#include <wx/dcmemory.h>
#include <wx/frame.h>
#include <wx/log.h>
#include <wx/panel.h>
#include "Configuration.h"
#include "sidebars/GreekSidebar.h"
#include "sidebars/StatSidebar.h"
#include <cstdlib>
#include <unistd.h>
#include <catch2/catch.hpp>
Include dependency graph for test_GreekSidebar.cpp:

Data Structures

class  TestApp
 

Functions

 wxDECLARE_APP (TestApp)
 
 SCENARIO ("A too-small statistics sidebar keeps its buttons reachable by scrolling")
 
 SCENARIO ("A too-small Greek sidebar keeps its wrapped rows reachable by scrolling")
 
int main (int argc, char **argv)
 

Detailed Description

Regression test for the Greek sidebar's line wrapping.

The sidebar is a wxScrolled that wraps its letter buttons into rows and scrolls vertically when they don't all fit. On wxWidgets 3.3 its OnSize() clamped the virtual (scrollable) height to the client height, so every wrapped row past the first was clipped with no scrollbar to reach it – the "sidebars no longer break into lines" bug. This drives a real GreekSidebar and checks that, when it is too small to show every letter, its virtual height grows past the client height so the lower rows are reachable.