MCPcopy Create free account
hub / github.com/IChooseYou/Reclass / testPaperColor

Method testPaperColor

tests/test_rendered_view.cpp:148–157  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

146 // ── Verify editor background (paper) is dark ──
147
148 void testPaperColor() {
149 QsciScintilla sci;
150 setupRenderedSci(&sci);
151
152 // Query default style background via Scintilla
153 long bgr = sci.SendScintilla(QsciScintillaBase::SCI_STYLEGETBACK,
154 (unsigned long)0 /*STYLE_DEFAULT*/);
155 long expected = toBGR(QColor("#1e1e1e"));
156 QCOMPARE(bgr, expected);
157 }
158
159 // ── Verify caret (cursor) foreground color ──
160

Callers

nothing calls this directly

Calls 2

setupRenderedSciFunction · 0.85
toBGRFunction · 0.85

Tested by

no test coverage detected