wxMaxima
Loading...
Searching...
No Matches
Macros | Functions
test_TextFormat.cpp File Reference

Tests for TextFormat (GH #492): how the bold/italic/... formatting of a text cell follows an edit of its text, and how it is written to and read from the <line> elements of a .wxmx file. More...

#include "TextFormat.h"
#include <wx/init.h>
#include <wx/sstream.h>
#include <wx/xml/xml.h>
#include <catch2/catch.hpp>
Include dependency graph for test_TextFormat.cpp:

Functions

 SCENARIO ("Formats follow a single edit of the text")
 
 SCENARIO ("Formats follow several edits at once")
 
 SCENARIO ("Switching a format on with nothing selected affects what is typed")
 
 SCENARIO ("Formats are saved as <line> attributes")
 
 SCENARIO ("Superscript and subscript are saved like the other formats")
 
 SCENARIO ("Superscript and subscript exclude each other")
 
 SCENARIO ("Ranges count Unicode code points")
 
 SCENARIO ("Inline formatting tags are read, for a future file format")
 
 SCENARIO ("Attributes this version doesn't know are kept")
 
 SCENARIO ("Malformed ranges are skipped")
 
 SCENARIO ("Text is split into runs for other programs' formats")
 
int main (int argc, char *argv[])
 
 SCENARIO ("Formatted HTML from other programs is read (GH #2475)")
 

Detailed Description

Tests for TextFormat (GH #492): how the bold/italic/... formatting of a text cell follows an edit of its text, and how it is written to and read from the <line> elements of a .wxmx file.