History

change to Test API

luiscuenca committed 8 years ago

Commit ddbadf51 parent 5654acf4 files · +28 −12Browse files

Showing the changes to interface/src/scripting/TestScriptingInterface.h (1 of 4 files). Show all

Unified · Split

interface/src/scripting/TestScriptingInterface.h+14−0
@@ -149,6 +149,20 @@ public slots: · 148 unmodified lines
149 */149 */
150 void showMaximized();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
152private:166private:
153 bool waitForCondition(qint64 maxWaitMs, std::function<bool()> condition);167 bool waitForCondition(qint64 maxWaitMs, std::function<bool()> condition);
154 QString _testResultsLocation;168 QString _testResultsLocation;