Fix Vt102EmulationTest

The emulation was not being propertly initialized.  While at it, fix the
expected value for Tertiary DA.
wilder
Luis Javier Merino Morán 4 years ago committed by Tomaz Canabrava
parent 594d60cdf8
commit d5f49282b6
  1. 4
      src/autotests/Vt102EmulationTest.cpp

@ -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>)

Loading…
Cancel
Save