aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/qdeclarativestates
diff options
context:
space:
mode:
authorAurindam Jana <aurindam.jana@nokia.com>2011-11-18 16:41:08 +0100
committerQt by Nokia <qt-info@nokia.com>2011-11-24 11:40:07 +0100
commit43b2d685fbbefd7eb89e4e84af02bc4a4aea86e0 (patch)
treefaac8b3a6ad548626a99a7430b4d2e8d958c1e6a /tests/auto/declarative/qdeclarativestates
parent5aad0f5da641d778958a4127f33cbd9943e6a6c5 (diff)
ConsoleAPI: Use environment variable
Show detailed information, such as file and line number, for console.log, console.debug and print when the environment variable QML_CONSOLE_EXTENDED is set. Change-Id: I8f660f58d0fd08971ce9706b4a418ed60f312980 Reviewed-by: Kai Koehne <kai.koehne@nokia.com>
Diffstat (limited to 'tests/auto/declarative/qdeclarativestates')
-rw-r--r--tests/auto/declarative/qdeclarativestates/tst_qdeclarativestates.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/tests/auto/declarative/qdeclarativestates/tst_qdeclarativestates.cpp b/tests/auto/declarative/qdeclarativestates/tst_qdeclarativestates.cpp
index efac99c54c..c6a1e0aeac 100644
--- a/tests/auto/declarative/qdeclarativestates/tst_qdeclarativestates.cpp
+++ b/tests/auto/declarative/qdeclarativestates/tst_qdeclarativestates.cpp
@@ -74,7 +74,7 @@ public:
MyRect() {}
void doSomething() { emit didSomething(); }
-
+
int propertyWithNotify() const { return m_prop; }
void setPropertyWithNotify(int i) { m_prop = i; emit oddlyNamedNotifySignal(); }
@@ -1229,9 +1229,8 @@ void tst_qdeclarativestates::tempState()
QQuickRectangle *rect = qobject_cast<QQuickRectangle*>(rectComponent.create());
QVERIFY(rect != 0);
QQuickItemPrivate *rectPrivate = QQuickItemPrivate::get(rect);
- QString messageFormat = QString(QLatin1String("%1 (file://%2:%3)"));
- QTest::ignoreMessage(QtDebugMsg, messageFormat.arg(QLatin1String("entering placed")).arg(TESTDATA("legalTempState.qml")).arg(11).toLatin1());
- QTest::ignoreMessage(QtDebugMsg, messageFormat.arg(QLatin1String("entering idle")).arg(TESTDATA("legalTempState.qml")).arg(15).toLatin1());
+ QTest::ignoreMessage(QtDebugMsg, "entering placed");
+ QTest::ignoreMessage(QtDebugMsg, "entering idle");
rectPrivate->setState("placed");
QCOMPARE(rectPrivate->state(), QLatin1String("idle"));
}