|
wxMaxima
|
Tests the marks a code cell shows where Maxima reported an error (GH #289): the statement that failed, and in it the place a syntax error was found at. 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/EditorCell.h"#include "cells/GroupCell.h"#include <memory>#include <catch2/catch.hpp>Data Structures | |
| class | TestApp |
Functions | |
| SCENARIO ("A failing statement and its syntax error are marked") | |
| SCENARIO ("The statement Maxima is evaluating is highlighted") | |
| wxDECLARE_APP (TestApp) | |
| int | main (int argc, char **argv) |
Tests the marks a code cell shows where Maxima reported an error (GH #289): the statement that failed, and in it the place a syntax error was found at.
The marks belong to the text they were set for. Pinned here: they are painted, only while the text is unchanged, and only where they were set.
Also the highlight of the statement Maxima is evaluating right now, which is drawn the same way.
Windowless: real GroupCell/EditorCell against a memory-DC Configuration, no Worksheet, no wxFrame – the test_EditorCellTabs pattern.