Showing the changes to interface/src/scripting/TestScriptingInterface.h (1 of 4 files). Show all
Unified · Split
| @@ -149,6 +149,20 @@ public slots: · 148 unmodified lines | ||
| 149 | 149 | */ |
| 150 | 150 | void showMaximized(); |
| 151 | 151 | |
| 152 | + /**jsdoc | |
| 153 | + * Values higher than 0 will create replicas of other-avatars when entering a domain for testing purpouses | |
| 154 | + * @function Test.setOtherAvatarsReplicaCount | |
| 155 | + * @param {number} count - Number of replicas we want to create | |
| 156 | + */ | |
| 157 | + Q_INVOKABLE void setOtherAvatarsReplicaCount(int count); | |
| 158 | + | |
| 159 | + /**jsdoc | |
| 160 | + * Return the number of replicas that are being created of other-avatars when entering a domain | |
| 161 | + * @function Test.getOtherAvatarsReplicaCount | |
| 162 | + * @returns {number} Current number of replicas of other-avatars. | |
| 163 | + */ | |
| 164 | + Q_INVOKABLE int getOtherAvatarsReplicaCount(); | |
| 165 | + | |
| 152 | 166 | private: |
| 153 | 167 | bool waitForCondition(qint64 maxWaitMs, std::function<bool()> condition); |
| 154 | 168 | QString _testResultsLocation; |