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

Tests for HelpBrowser::HasContent() and ShowStartPageIfEmpty(). More...

#include <wx/app.h>
#include <wx/frame.h>
#include <wx/log.h>
#include "sidebars/HelpBrowser.h"
#include <catch2/catch.hpp>
Include dependency graph for test_HelpBrowserContent.cpp:

Data Structures

class  TestApp
 

Functions

 wxDECLARE_APP (TestApp)
 
int main (int argc, char **argv)
 

Detailed Description

Tests for HelpBrowser::HasContent() and ShowStartPageIfEmpty().

The help sidebar creates its browser only when something asks for help, so until then it is an empty panel. wxMaximaFrame therefore hides it at startup, and if the user opens it by hand before asking for help it shows the manual (ShowStartPageIfEmpty()) instead of staying empty.