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

Tests that a LabelCell shows the right text as soon as it exists. More...

#include <wx/app.h>
#include <wx/bitmap.h>
#include <wx/dcmemory.h>
#include <wx/log.h>
#include "CellPointers.h"
#include "Configuration.h"
#include "cells/GroupCell.h"
#include "cells/LabelCell.h"
#include <catch2/catch.hpp>
Include dependency graph for test_LabelCellDisplay.cpp:

Data Structures

class  TestApp
 

Functions

 SCENARIO ("A new label cell already shows what the label settings ask for")
 
 wxDECLARE_APP (TestApp)
 
int main (int argc, char **argv)
 

Detailed Description

Tests that a LabelCell shows the right text as soon as it exists.

TextCell's constructor sets the displayed text, but a constructor can only call its own class's version of a virtual function: LabelCell's UpdateDisplayedText(), which hides automatic labels or shows a user-defined one, didn't run until the cell was first laid out under a changed configuration. clang-analyzer's VirtualCall check pointed at this.