diff options
author | aavit <qt-info@nokia.com> | 2010-11-19 12:30:09 (GMT) |
---|---|---|
committer | aavit <qt-info@nokia.com> | 2010-11-19 12:30:09 (GMT) |
commit | 8034cab2cce55b43dcc1100d0b22f8c85eb733c2 (patch) | |
tree | 5a1637fa48ce23e12c6a51490f6a481fd1ca1a5a /tests/auto/declarative/qdeclarativedebughelper/tst_qdeclarativedebughelper.cpp | |
parent | e614223831f2b3cc9051ae88586370a7d5b63db2 (diff) | |
parent | 1d152964adec62d03ce2f4a45ca40ddbd05819ae (diff) | |
download | Qt-8034cab2cce55b43dcc1100d0b22f8c85eb733c2.zip Qt-8034cab2cce55b43dcc1100d0b22f8c85eb733c2.tar.gz Qt-8034cab2cce55b43dcc1100d0b22f8c85eb733c2.tar.bz2 |
Merge branch 'master' of scm.dev.nokia.troll.no:qt/oslo-staging-2
Diffstat (limited to 'tests/auto/declarative/qdeclarativedebughelper/tst_qdeclarativedebughelper.cpp')
-rw-r--r-- | tests/auto/declarative/qdeclarativedebughelper/tst_qdeclarativedebughelper.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/auto/declarative/qdeclarativedebughelper/tst_qdeclarativedebughelper.cpp b/tests/auto/declarative/qdeclarativedebughelper/tst_qdeclarativedebughelper.cpp index 36f2222..60aec9d 100644 --- a/tests/auto/declarative/qdeclarativedebughelper/tst_qdeclarativedebughelper.cpp +++ b/tests/auto/declarative/qdeclarativedebughelper/tst_qdeclarativedebughelper.cpp @@ -54,6 +54,7 @@ class tst_qdeclarativedebughelper : public QObject { private slots: void getScriptEngine(); void setAnimationSlowDownFactor(); + void enableDebugging(); }; class TestAnimation : public QAbstractAnimation { @@ -109,6 +110,12 @@ void tst_qdeclarativedebughelper::setAnimationSlowDownFactor() QVERIFY(animation.updateCalled > 1); } +void tst_qdeclarativedebughelper::enableDebugging() +{ + QTest::ignoreMessage(QtWarningMsg, "Qml debugging is enabled. Only use this in a safe environment!"); + QDeclarativeDebugHelper::enableDebugging(); +} + QTEST_MAIN(tst_qdeclarativedebughelper) #include "tst_qdeclarativedebughelper.moc" |