Commit d5f49282 authored by Luis Javier Merino's avatar Luis Javier Merino Committed by Tomaz Canabrava
Browse files

Fix Vt102EmulationTest

The emulation was not being propertly initialized.  While at it, fix the
expected value for Tertiary DA.
parent 594d60cd
......@@ -103,14 +103,14 @@ void Vt102EmulationTest::sendAndCompare(TestEmulation *em, const char *input, si
void Vt102EmulationTest::testParse()
{
TestEmulation em;
em.reset();
em.setCodec(TestEmulation::Utf8Codec);
Q_ASSERT(em._currentScreen != nullptr);
sendAndCompare(&em, "a", 1, QStringLiteral("a"), "");
const char tertiaryDeviceAttributes[] = {0x1b, '[', '=', '0', 'c'};
QEXPECT_FAIL("", "Fixed by https://invent.kde.org/utilities/konsole/-/merge_requests/416", Abort);
sendAndCompare(&em, tertiaryDeviceAttributes, sizeof tertiaryDeviceAttributes, QStringLiteral(""), "\033P!|00000000\033\\");
sendAndCompare(&em, tertiaryDeviceAttributes, sizeof tertiaryDeviceAttributes, QStringLiteral(""), "\033P!|7E4B4445\033\\");
}
Q_DECLARE_METATYPE(std::vector<TestEmulation::Item>)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment