aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/qjsengine
diff options
context:
space:
mode:
authorKent Hansen <kent.hansen@nokia.com>2012-01-17 09:12:10 +0100
committerQt by Nokia <qt-info@nokia.com>2012-02-01 08:37:49 +0100
commitbe46366689eb2ed26c00b516c17b42d12c12070e (patch)
treef667331cd66eab1641cd0221d444718dedeaf927 /tests/auto/declarative/qjsengine
parent3a017cc96292dbda4ca9fd2ca5ac7cf8b39cd43e (diff)
Remove QJSValue::instanceOf() function
Rationale: This is a remnant from QtScript. There is no good reason for providing this type of low-level "prototype inheritance chain" checks in this high-level QJSValue class. If you want to check if an object is of the "right type", you can check if it has the properties you require using property(). Task-number: QTBUG-23604 Change-Id: I3a274212cc57c38228fab73423af481e1b95d8a5 Reviewed-by: Simon Hausmann <simon.hausmann@nokia.com> Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@nokia.com>
Diffstat (limited to 'tests/auto/declarative/qjsengine')
-rw-r--r--tests/auto/declarative/qjsengine/tst_qjsengine.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/tests/auto/declarative/qjsengine/tst_qjsengine.cpp b/tests/auto/declarative/qjsengine/tst_qjsengine.cpp
index b24aad864c..2aed67aad1 100644
--- a/tests/auto/declarative/qjsengine/tst_qjsengine.cpp
+++ b/tests/auto/declarative/qjsengine/tst_qjsengine.cpp
@@ -4090,7 +4090,6 @@ void tst_QJSEngine::jsNumberClass()
QVERIFY(ctor.property("POSITIVE_INFINITY").isNumber());
QCOMPARE(ctor.propertyFlags("POSITIVE_INFINITY"), flags);
}
- QVERIFY(proto.instanceOf(eng.globalObject().property("Object")));
QCOMPARE(proto.toNumber(), qreal(0));
QVERIFY(proto.property("constructor").strictlyEquals(ctor));