diff options
author | Andy Shaw <andy.shaw@digia.com> | 2014-10-23 18:31:45 +0200 |
---|---|---|
committer | Andy Shaw <andy.shaw@digia.com> | 2014-10-24 19:37:28 +0200 |
commit | fd6f82f5ea6b46aedc26a71b97793e065df09b73 (patch) | |
tree | 647533bdd8886b58118eddeb7be55a1d84439fe5 /tests | |
parent | f91eef84a37d0496d42dbdad0b8be40e55af792e (diff) | |
download | qtactiveqt-fd6f82f5ea6b46aedc26a71b97793e065df09b73.tar.gz |
In some controls the property can be listed twice so merge the flags
In the remote desktop client control there were separate entries for the
getter and setter of the properties and the flags for the getter would
override the other. Therefore the flags should be combined as the relevant
function would be used anyway for the purpose.
Change-Id: I212b23cf69c96be71dcd8a7493e8a57cb69ff5fe
Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/qaxobject/tst_qaxobject.cpp | 13 |
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" |