Removed setWindowSize - crashes on both Windows and Mac.

Fixed typo.
This commit is contained in:
NissimHadar 2018-11-02 10:47:17 -07:00
parent c7353e6c59
commit 70c0addc3f
2 changed files with 1 additions and 11 deletions

View file

@ -203,13 +203,9 @@ int TestScriptingInterface::getOtherAvatarsReplicaCount() {
QString TestScriptingInterface::getOperatingSystemType() {
#ifdef Q_OS_WIN
return "WINDOWS";
#elif defined Q_MAC_OS
#elif defined Q_OS_MAC
return "MACOS";
#else
return "UNKNOWN";
#endif
}
void TestScriptingInterface::setWindowSize(int width, int height) {
qApp->getWindow()->resize(width, height);
}

View file

@ -170,12 +170,6 @@ public slots:
*/
QString getOperatingSystemType();
/**jsdoc
* Sets the size of the Window on desktop
* @function Test.getOperatingSystemType
*/
void setWindowSize(int width, int height);
private:
bool waitForCondition(qint64 maxWaitMs, std::function<bool()> condition);
QString _testResultsLocation;