summaryrefslogtreecommitdiffstats
path: root/tests/auto/qscriptclass/tst_qscriptclass.cpp
diff options
context:
space:
mode:
authorKent Hansen <khansen@trolltech.com>2009-07-03 13:14:54 (GMT)
committerKent Hansen <khansen@trolltech.com>2009-07-03 13:14:54 (GMT)
commit2e571b141ce50349790ca943455427185442ed16 (patch)
treeae9705be2032c19bea05c1779d41a95d289932fc /tests/auto/qscriptclass/tst_qscriptclass.cpp
parent5240cbcc6b8f08538b1b9ac389d86749b0330372 (diff)
downloadQt-2e571b141ce50349790ca943455427185442ed16.zip
Qt-2e571b141ce50349790ca943455427185442ed16.tar.gz
Qt-2e571b141ce50349790ca943455427185442ed16.tar.bz2
start implementing QScriptClass extensions
Callable seems to work, HasInstance not quite there yet.
Diffstat (limited to 'tests/auto/qscriptclass/tst_qscriptclass.cpp')
-rw-r--r--tests/auto/qscriptclass/tst_qscriptclass.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/auto/qscriptclass/tst_qscriptclass.cpp b/tests/auto/qscriptclass/tst_qscriptclass.cpp
index 10d2183..6aad73a 100644
--- a/tests/auto/qscriptclass/tst_qscriptclass.cpp
+++ b/tests/auto/qscriptclass/tst_qscriptclass.cpp
@@ -764,6 +764,7 @@ void tst_QScriptClass::extension()
QScriptValueList args;
args << QScriptValue(&eng, 4) << QScriptValue(&eng, 5);
QScriptValue ret = obj.call(obj, args);
+ QVERIFY(ret.isNumber());
QCOMPARE(ret.toNumber(), qsreal(15));
}