diff options
author | Warwick Allison <warwick.allison@nokia.com> | 2010-05-20 04:40:21 (GMT) |
---|---|---|
committer | Warwick Allison <warwick.allison@nokia.com> | 2010-05-20 04:41:12 (GMT) |
commit | 33f59e150e871a1a090f478bfdfa22dc175a9d6e (patch) | |
tree | 657c523ce8941cee5821fc26581d4a8bf564a30d /tests/auto/declarative/qdeclarativeecmascript/tst_qdeclarativeecmascript.cpp | |
parent | 1057b0a334c9ac7e7e1f3287935fad06de423108 (diff) | |
download | Qt-33f59e150e871a1a090f478bfdfa22dc175a9d6e.zip Qt-33f59e150e871a1a090f478bfdfa22dc175a9d6e.tar.gz Qt-33f59e150e871a1a090f478bfdfa22dc175a9d6e.tar.bz2 |
Test e75088323ae15604139ddfd66b85cc3b8d43abeb
Task-number: QTBUG-10820
Diffstat (limited to 'tests/auto/declarative/qdeclarativeecmascript/tst_qdeclarativeecmascript.cpp')
-rw-r--r-- | tests/auto/declarative/qdeclarativeecmascript/tst_qdeclarativeecmascript.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/auto/declarative/qdeclarativeecmascript/tst_qdeclarativeecmascript.cpp b/tests/auto/declarative/qdeclarativeecmascript/tst_qdeclarativeecmascript.cpp index 4900fa2..9a8ad64 100644 --- a/tests/auto/declarative/qdeclarativeecmascript/tst_qdeclarativeecmascript.cpp +++ b/tests/auto/declarative/qdeclarativeecmascript/tst_qdeclarativeecmascript.cpp @@ -2090,6 +2090,8 @@ void tst_qdeclarativeecmascript::compiled() QCOMPARE(object->property("test21").toString(), QLatin1String("6.7")); QCOMPARE(object->property("test22").toString(), QLatin1String("!")); QCOMPARE(object->property("test23").toBool(), true); + QCOMPARE(qvariant_cast<QColor>(object->property("test24")), QColor(0x11,0x22,0x33)); + QCOMPARE(qvariant_cast<QColor>(object->property("test25")), QColor(0x11,0x22,0x33,0xAA)); delete object; } |