| 121 | } |
| 122 | |
| 123 | void testClientSide() |
| 124 | { |
| 125 | ClientToolManager::instance()->requestAvailableTools(); |
| 126 | QAbstractItemModelTester modelTest(ClientToolManager::instance()->model()); |
| 127 | |
| 128 | // we're testing inprocess, thus tool list should be available instantly. |
| 129 | QVERIFY(ClientToolManager::instance()->isToolListLoaded()); |
| 130 | |
| 131 | testHasBasicTools(false); |
| 132 | testToolEnabled(); |
| 133 | testToolSelected(); |
| 134 | testRequestToolsForObject(); |
| 135 | |
| 136 | testClearance(); |
| 137 | |
| 138 | ClientToolManager::instance()->requestAvailableTools(); // "reconnect" |
| 139 | testHasBasicTools(true); |
| 140 | testToolSelected(); |
| 141 | testRequestToolsForObject(); |
| 142 | } |
| 143 | |
| 144 | private: |
| 145 | static void testHasBasicTools(bool actionInspectorEnabled) |
nothing calls this directly
no test coverage detected