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
149149 */
150150 void showMaximized();
151151
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+
152166 private:
153167 bool waitForCondition(qint64 maxWaitMs, std::function<bool()> condition);
154168 QString _testResultsLocation;