summaryrefslogtreecommitdiffstats
path: root/tests/auto/qscriptextqobject
diff options
context:
space:
mode:
authorKent Hansen <kent.hansen@nokia.com>2011-02-23 11:02:40 +0100
committerKent Hansen <kent.hansen@nokia.com>2011-02-23 11:02:40 +0100
commit80b5aec8dc5d00ad495db541ae4f7e801245993b (patch)
treec683059d89c6a12e27b03799225c88d33c9a2c35 /tests/auto/qscriptextqobject
parent4ae7bdabe8903d9cdfc48b9de6e2978b99b0b334 (diff)
Fix typo in autotest
When using []-notation to access properties, the name must be enclosed by ''. The test was failing, but not for the right reason. Also add link to the task ID in the failure message.
Diffstat (limited to 'tests/auto/qscriptextqobject')
-rw-r--r--tests/auto/qscriptextqobject/tst_qscriptextqobject.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/auto/qscriptextqobject/tst_qscriptextqobject.cpp b/tests/auto/qscriptextqobject/tst_qscriptextqobject.cpp
index ca2b88807a..c53abcb81e 100644
--- a/tests/auto/qscriptextqobject/tst_qscriptextqobject.cpp
+++ b/tests/auto/qscriptextqobject/tst_qscriptextqobject.cpp
@@ -1008,8 +1008,9 @@ void tst_QScriptExtQObject::getSetStaticProperty_methodPersistence()
QVERIFY(slot.isFunction());
QScriptValue sameSlot = m_engine->evaluate("myObject.mySlot");
QVERIFY(sameSlot.strictlyEquals(slot));
- sameSlot = m_engine->evaluate("myObject[mySlot()]");
- QEXPECT_FAIL("", "Signature-based method lookup creates new function wrapper object", Continue);
+ sameSlot = m_engine->evaluate("myObject['mySlot()']");
+ QVERIFY(sameSlot.isFunction());
+ QEXPECT_FAIL("", "QTBUG-17611: Signature-based method lookup creates new function wrapper object", Continue);
QVERIFY(sameSlot.strictlyEquals(slot));
}
}