| 92 | } |
| 93 | |
| 94 | void TestSessionController::renameSession() |
| 95 | { |
| 96 | const QString sessionName = QStringLiteral("TestSession4"); |
| 97 | const QString newSessionName = QStringLiteral("TestOtherSession4"); |
| 98 | KDevelop::Session *s = m_sessionCtrl->createSession( sessionName ); |
| 99 | QCOMPARE( sessionName, s->name() ); |
| 100 | verifySessionDir( s ); |
| 101 | QSignalSpy spy(s, SIGNAL(sessionUpdated(KDevelop::ISession*))); |
| 102 | s->setName( newSessionName ); |
| 103 | QCOMPARE( newSessionName, s->name() ); |
| 104 | QCOMPARE( spy.size(), 1 ); |
| 105 | |
| 106 | verifySessionDir( s ); |
| 107 | } |
| 108 | |
| 109 | void TestSessionController::canRenameActiveSession() |
| 110 | { |
nothing calls this directly
no test coverage detected