summaryrefslogtreecommitdiff
path: root/tests/auto
diff options
context:
space:
mode:
authorKent Hansen <khansen@trolltech.com>2009-07-03 15:14:54 +0200
committerKent Hansen <khansen@trolltech.com>2009-07-03 15:14:54 +0200
commit2e571b141ce50349790ca943455427185442ed16 (patch)
treeae9705be2032c19bea05c1779d41a95d289932fc /tests/auto
parent5240cbcc6b8f08538b1b9ac389d86749b0330372 (diff)
downloadqt4-tools-2e571b141ce50349790ca943455427185442ed16.tar.gz
start implementing QScriptClass extensions
Callable seems to work, HasInstance not quite there yet.
Diffstat (limited to 'tests/auto')
-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 10d218372f..6aad73af07 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));
}