diff options
author | Aaron Kennedy <aaron.kennedy@nokia.com> | 2010-05-17 06:22:43 (GMT) |
---|---|---|
committer | Aaron Kennedy <aaron.kennedy@nokia.com> | 2010-05-17 06:22:43 (GMT) |
commit | 58c08b1195add26e2ff96844885ea9d6c124da30 (patch) | |
tree | 34d9940d99865cc2c2adfdcb29414c6426ec661d /tests/auto/declarative/qdeclarativeecmascript/tst_qdeclarativeecmascript.cpp | |
parent | 029f98ee0176b34279e7cc944cca17f027fe5a0a (diff) | |
download | Qt-58c08b1195add26e2ff96844885ea9d6c124da30.zip Qt-58c08b1195add26e2ff96844885ea9d6c124da30.tar.gz Qt-58c08b1195add26e2ff96844885ea9d6c124da30.tar.bz2 |
Check for acquireReg() failure
QTBUG-10696
Diffstat (limited to 'tests/auto/declarative/qdeclarativeecmascript/tst_qdeclarativeecmascript.cpp')
-rw-r--r-- | tests/auto/declarative/qdeclarativeecmascript/tst_qdeclarativeecmascript.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/auto/declarative/qdeclarativeecmascript/tst_qdeclarativeecmascript.cpp b/tests/auto/declarative/qdeclarativeecmascript/tst_qdeclarativeecmascript.cpp index b8faa7c..64e5b3f 100644 --- a/tests/auto/declarative/qdeclarativeecmascript/tst_qdeclarativeecmascript.cpp +++ b/tests/auto/declarative/qdeclarativeecmascript/tst_qdeclarativeecmascript.cpp @@ -149,6 +149,7 @@ private slots: void functionAssignment(); void eval(); void function(); + void qtbug_10696(); void include(); @@ -2472,6 +2473,14 @@ void tst_qdeclarativeecmascript::include() } } +void tst_qdeclarativeecmascript::qtbug_10696() +{ + QDeclarativeComponent component(&engine, TEST_FILE("qtbug_10696.qml")); + QObject *o = component.create(); + QVERIFY(o != 0); + delete o; +} + QTEST_MAIN(tst_qdeclarativeecmascript) #include "tst_qdeclarativeecmascript.moc" |