diff options
author | Kent Hansen <khansen@trolltech.com> | 2009-07-09 11:55:31 (GMT) |
---|---|---|
committer | Kent Hansen <khansen@trolltech.com> | 2009-07-09 11:57:24 (GMT) |
commit | d96bc6ba81465c5a82ca08ac68c2dac54a57700f (patch) | |
tree | 474b215e655a657cff6266d377afda1a2c4893d3 /tests | |
parent | 5bf417cf836636aab1dcadffaa73f26966880dff (diff) | |
download | Qt-d96bc6ba81465c5a82ca08ac68c2dac54a57700f.zip Qt-d96bc6ba81465c5a82ca08ac68c2dac54a57700f.tar.gz Qt-d96bc6ba81465c5a82ca08ac68c2dac54a57700f.tar.bz2 |
make QObject property access use getter+setter functions
Setters don't work yet. But hey, the defaultprototypes
example finally works.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/qscriptqobject/tst_qscriptqobject.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/tests/auto/qscriptqobject/tst_qscriptqobject.cpp b/tests/auto/qscriptqobject/tst_qscriptqobject.cpp index b046caa..b62deea 100644 --- a/tests/auto/qscriptqobject/tst_qscriptqobject.cpp +++ b/tests/auto/qscriptqobject/tst_qscriptqobject.cpp @@ -597,9 +597,7 @@ void tst_QScriptExtQObject::getSetStaticProperty() QScriptValue mobj = m_engine->globalObject().property("myObject"); QVERIFY(!(mobj.propertyFlags("intProperty") & QScriptValue::ReadOnly)); QVERIFY(mobj.propertyFlags("intProperty") & QScriptValue::Undeletable); - QEXPECT_FAIL("", "Qt properties should have the Getter flag", Continue); QVERIFY(mobj.propertyFlags("intProperty") & QScriptValue::PropertyGetter); - QEXPECT_FAIL("", "Qt properties should have the Setter flag", Continue); QVERIFY(mobj.propertyFlags("intProperty") & QScriptValue::PropertySetter); QVERIFY(!(mobj.propertyFlags("intProperty") & QScriptValue::SkipInEnumeration)); QVERIFY(mobj.propertyFlags("intProperty") & QScriptValue::QObjectMember); |