summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/qaxobject/tst_qaxobject.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/auto/qaxobject/tst_qaxobject.cpp b/tests/auto/qaxobject/tst_qaxobject.cpp
index 00032da..2190590 100644
--- a/tests/auto/qaxobject/tst_qaxobject.cpp
+++ b/tests/auto/qaxobject/tst_qaxobject.cpp
@@ -43,6 +43,7 @@ class tst_QAxObject : public QObject
private slots:
void propertyByRefWritable();
void setPropertyByRef();
+ void multiplePropertiesDuplicateName();
};
void tst_QAxObject::propertyByRefWritable()
@@ -65,5 +66,17 @@ void tst_QAxObject::setPropertyByRef()
QVERIFY(speak.setProperty("Voice", speak.property("Voice")));
}
+void tst_QAxObject::multiplePropertiesDuplicateName()
+{
+ // Remote desktop client control has two instances for most properties,
+ // one for the setter and one for the getter
+ QAxObject ax("MsTscAx.MsTscAx.4");
+ if (ax.isNull())
+ QSKIP("MsTscAx control was not found so test cannot be run", SkipAll);
+ int newDesktopHeight = 768;
+ QVERIFY(ax.setProperty("DesktopHeight", newDesktopHeight));
+ QCOMPARE(ax.property("DesktopHeight").toInt(), newDesktopHeight);
+}
+
QTEST_MAIN(tst_QAxObject)
#include "tst_qaxobject.moc"