diff options
author | Kent Hansen <khansen@trolltech.com> | 2009-07-03 15:14:54 +0200 |
---|---|---|
committer | Kent Hansen <khansen@trolltech.com> | 2009-07-03 15:14:54 +0200 |
commit | 2e571b141ce50349790ca943455427185442ed16 (patch) | |
tree | ae9705be2032c19bea05c1779d41a95d289932fc /tests/auto | |
parent | 5240cbcc6b8f08538b1b9ac389d86749b0330372 (diff) | |
download | qt4-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.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 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)); } |