| 107 | } |
| 108 | |
| 109 | void TestSessionController::canRenameActiveSession() |
| 110 | { |
| 111 | const QString sessionName = QStringLiteral("TestSession5"); |
| 112 | const QString newSessionName = QStringLiteral("TestOtherSession5"); |
| 113 | KDevelop::Session *s = m_sessionCtrl->createSession( sessionName ); |
| 114 | QCOMPARE( sessionName, s->name() ); |
| 115 | m_sessionCtrl->loadSession( sessionName ); |
| 116 | QSignalSpy spy(s, SIGNAL(sessionUpdated(KDevelop::ISession*))); |
| 117 | s->setName( newSessionName ); |
| 118 | QCOMPARE( newSessionName, s->name() ); |
| 119 | QCOMPARE( spy.size(), 1 ); |
| 120 | |
| 121 | verifySessionDir( s ); |
| 122 | } |
| 123 | |
| 124 | void TestSessionController::deleteSession() |
| 125 | { |
nothing calls this directly
no test coverage detected