|
wxMaxima
|
Tests for real tab-character ('\t') support inside EditorCell. More...
#include <wx/app.h>#include <wx/bitmap.h>#include <wx/dcmemory.h>#include <wx/event.h>#include <wx/log.h>#include "CellPointers.h"#include "Configuration.h"#include "cells/EditorCell.h"#include "cells/GroupCell.h"#include <memory>#include <catch2/catch.hpp>Data Structures | |
| class | TestApp |
Functions | |
| SCENARIO ("A tab survives construction/SetValue untouched") | |
| SCENARIO ("GetLineWidth() expands a tab to the next 4-column stop") | |
| SCENARIO ("The Tab key inserts a real tab character") | |
| SCENARIO ("Backspace removes a whole tab in one press") | |
| SCENARIO ("Selection + Tab/Shift+Tab indent and dedent with a real tab") | |
| SCENARIO ("Selection stays active across repeated Tab/Shift+Tab presses") | |
| wxDECLARE_APP (TestApp) | |
| int | main (int argc, char **argv) |
Tests for real tab-character ('\t') support inside EditorCell.
A tab is a single real character in m_text (see NormalizeLineEndings(), which replaced the old TabExpand() that irreversibly rewrote every tab into 1-4 spaces), expanded to the next 4-column tab stop only where text turns into pixels (NextTabStop(), used by Draw()/Recalculate()/GetLineWidth()) or where a click turns into a text offset (SelectPointText()).
Windowless: real GroupCell/EditorCell against a memory-DC Configuration, no Worksheet, no wxFrame – the test_EditorCellWrapping/test_EditorCellBidi pattern.