diff options
author | Kent Hansen <khansen@trolltech.com> | 2009-07-03 13:14:54 (GMT) |
---|---|---|
committer | Kent Hansen <khansen@trolltech.com> | 2009-07-03 13:14:54 (GMT) |
commit | 2e571b141ce50349790ca943455427185442ed16 (patch) | |
tree | ae9705be2032c19bea05c1779d41a95d289932fc /tests/auto/qscriptclass/tst_qscriptclass.cpp | |
parent | 5240cbcc6b8f08538b1b9ac389d86749b0330372 (diff) | |
download | Qt-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.cpp | 1 |
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)); } |