mirror of
https://github.com/overte-org/overte.git
synced 2025-08-05 17:09:36 +02:00
Added method to detect OS type. Needed for testing.
This commit is contained in:
parent
ebc37610d3
commit
d851720cb0
2 changed files with 16 additions and 0 deletions
|
@ -198,4 +198,14 @@ void TestScriptingInterface::setOtherAvatarsReplicaCount(int count) {
|
||||||
|
|
||||||
int TestScriptingInterface::getOtherAvatarsReplicaCount() {
|
int TestScriptingInterface::getOtherAvatarsReplicaCount() {
|
||||||
return qApp->getOtherAvatarsReplicaCount();
|
return qApp->getOtherAvatarsReplicaCount();
|
||||||
|
}
|
||||||
|
|
||||||
|
QString TestScriptingInterface::getOperatingSystemType() {
|
||||||
|
#ifdef Q_OS_WIN
|
||||||
|
return "WINDOWS";
|
||||||
|
#elif #defined Q_MAC_OS
|
||||||
|
return "MACOS";
|
||||||
|
#else
|
||||||
|
return "UNKNOWN";
|
||||||
|
#endif
|
||||||
}
|
}
|
|
@ -163,6 +163,12 @@ public slots:
|
||||||
*/
|
*/
|
||||||
Q_INVOKABLE int getOtherAvatarsReplicaCount();
|
Q_INVOKABLE int getOtherAvatarsReplicaCount();
|
||||||
|
|
||||||
|
/**jsdoc
|
||||||
|
* Returns the Operating Sytem type
|
||||||
|
* @function Test.getOperatingSystemType
|
||||||
|
*/
|
||||||
|
QString getOperatingSystemType();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
bool waitForCondition(qint64 maxWaitMs, std::function<bool()> condition);
|
bool waitForCondition(qint64 maxWaitMs, std::function<bool()> condition);
|
||||||
QString _testResultsLocation;
|
QString _testResultsLocation;
|
||||||
|
|
Loading…
Reference in a new issue