diff options
author | Jason McDonald <jason.mcdonald@nokia.com> | 2011-05-04 02:26:59 (GMT) |
---|---|---|
committer | Jason McDonald <jason.mcdonald@nokia.com> | 2011-05-04 04:46:55 (GMT) |
commit | 6f791f8ad0b7ef023d91c1609ce076443f335c13 (patch) | |
tree | eed6c30cca2f2c6a647a37aec3f687e77dc05c56 /tests/auto | |
parent | edd9d3f64f1532e39a80a2c7a97a2501391b2316 (diff) | |
download | Qt-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')
-rw-r--r-- | tests/auto/declarative/qdeclarativeecmascript/tst_qdeclarativeecmascript.cpp | 4 |
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; |