Commit 785665d8 authored by Michal Humpula's avatar Michal Humpula
Browse files

sessions: fix testcase for anon session

parent 8879c7d1
Pipeline #70192 passed with stage
in 5 minutes and 48 seconds
......@@ -49,7 +49,7 @@ void KateSessionTest::create()
void KateSessionTest::createAnonymous()
KateSession::Ptr s = KateSession::createAnonymous(m_tmpfile->fileName());
QCOMPARE(s->name(), QString());
QCOMPARE(s->name(), QLatin1String("Anonymous"));
QCOMPARE((int)s->documents(), 0);
QCOMPARE(s->isAnonymous(), true);
QCOMPARE(s->config()->name(), m_tmpfile->fileName());
......@@ -69,7 +69,7 @@ void KateSessionTest::createAnonymousFrom()
// Create Anon from Other
ns = KateSession::createAnonymousFrom(s, newFile.fileName());
QCOMPARE(ns->name(), QString());
QCOMPARE(ns->name(), QLatin1String("Anonymous"));
QCOMPARE((int)ns->documents(), 0);
QCOMPARE(ns->isAnonymous(), true);
QCOMPARE(ns->config()->name(), newFile.fileName());
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