summaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/qdeclarativeecmascript
diff options
context:
space:
mode:
authorJason McDonald <jason.mcdonald@nokia.com>2011-05-04 02:26:59 (GMT)
committerJason McDonald <jason.mcdonald@nokia.com>2011-05-04 04:46:55 (GMT)
commit6f791f8ad0b7ef023d91c1609ce076443f335c13 (patch)
treeeed6c30cca2f2c6a647a37aec3f687e77dc05c56 /tests/auto/declarative/qdeclarativeecmascript
parentedd9d3f64f1532e39a80a2c7a97a2501391b2316 (diff)
downloadQt-6f791f8ad0b7ef023d91c1609ce076443f335c13.zip
Qt-6f791f8ad0b7ef023d91c1609ce076443f335c13.tar.gz
Qt-6f791f8ad0b7ef023d91c1609ce076443f335c13.tar.bz2
Remove Q_ASSERT's from ecmascript test.
These Q_ASSERT's were redundant as the test functions that call these functions already verify that "value == 0". Change-Id: Ic23e539c5814153d67fea8156ade0783f91d7b83 Task-number: QTBUG-17582 Reviewed-by: Rohan McGovern
Diffstat (limited to 'tests/auto/declarative/qdeclarativeecmascript')
-rw-r--r--tests/auto/declarative/qdeclarativeecmascript/tst_qdeclarativeecmascript.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/tests/auto/declarative/qdeclarativeecmascript/tst_qdeclarativeecmascript.cpp b/tests/auto/declarative/qdeclarativeecmascript/tst_qdeclarativeecmascript.cpp
index 48466d5..6be0275 100644
--- a/tests/auto/declarative/qdeclarativeecmascript/tst_qdeclarativeecmascript.cpp
+++ b/tests/auto/declarative/qdeclarativeecmascript/tst_qdeclarativeecmascript.cpp
@@ -2149,16 +2149,12 @@ public:
~CppOwnershipReturnValue() { delete value; }
Q_INVOKABLE QObject *create() {
- Q_ASSERT(value == 0);
-
value = new QObject;
QDeclarativeEngine::setObjectOwnership(value, QDeclarativeEngine::CppOwnership);
return value;
}
Q_INVOKABLE MyQmlObject *createQmlObject() {
- Q_ASSERT(value == 0);
-
MyQmlObject *rv = new MyQmlObject;
value = rv;
return rv;