diff options
author | Kent Hansen <khansen@trolltech.com> | 2009-07-02 10:21:40 (GMT) |
---|---|---|
committer | Kent Hansen <khansen@trolltech.com> | 2009-07-02 10:21:40 (GMT) |
commit | db684926cf69e329ca845c6204bbbbd5506721e6 (patch) | |
tree | ba7fe1b29f242222da52d8193c89ba63b0256b5d /tests/auto/qscriptqobject/tst_qscriptqobject.cpp | |
parent | 481211251438441aee79b8bc6178e7157eba7f61 (diff) | |
download | Qt-db684926cf69e329ca845c6204bbbbd5506721e6.zip Qt-db684926cf69e329ca845c6204bbbbd5506721e6.tar.gz Qt-db684926cf69e329ca845c6204bbbbd5506721e6.tar.bz2 |
implement QScriptValue::QObjectMember property flag
Diffstat (limited to 'tests/auto/qscriptqobject/tst_qscriptqobject.cpp')
-rw-r--r-- | tests/auto/qscriptqobject/tst_qscriptqobject.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/tests/auto/qscriptqobject/tst_qscriptqobject.cpp b/tests/auto/qscriptqobject/tst_qscriptqobject.cpp index eda055c..f1fec9f 100644 --- a/tests/auto/qscriptqobject/tst_qscriptqobject.cpp +++ b/tests/auto/qscriptqobject/tst_qscriptqobject.cpp @@ -602,20 +602,17 @@ void tst_QScriptExtQObject::getSetStaticProperty() QEXPECT_FAIL("", "Flags are wrong", Continue); QVERIFY(mobj.propertyFlags("intProperty") & QScriptValue::PropertySetter); QVERIFY(!(mobj.propertyFlags("intProperty") & QScriptValue::SkipInEnumeration)); - QEXPECT_FAIL("", "Flags are wrong", Continue); QVERIFY(mobj.propertyFlags("intProperty") & QScriptValue::QObjectMember); QVERIFY(!(mobj.propertyFlags("mySlot") & QScriptValue::ReadOnly)); QVERIFY(!(mobj.propertyFlags("mySlot") & QScriptValue::Undeletable)); QVERIFY(!(mobj.propertyFlags("mySlot") & QScriptValue::SkipInEnumeration)); - QEXPECT_FAIL("", "Flags are wrong", Continue); QVERIFY(mobj.propertyFlags("mySlot") & QScriptValue::QObjectMember); // signature-based property QVERIFY(!(mobj.propertyFlags("mySlot()") & QScriptValue::ReadOnly)); QVERIFY(!(mobj.propertyFlags("mySlot()") & QScriptValue::Undeletable)); QVERIFY(!(mobj.propertyFlags("mySlot()") & QScriptValue::SkipInEnumeration)); - QEXPECT_FAIL("", "Flags are wrong", Continue); QVERIFY(mobj.propertyFlags("mySlot()") & QScriptValue::QObjectMember); } @@ -889,7 +886,6 @@ void tst_QScriptExtQObject::getSetDynamicProperty() QVERIFY(!(mobj.propertyFlags("dynamicProperty") & QScriptValue::ReadOnly)); QVERIFY(!(mobj.propertyFlags("dynamicProperty") & QScriptValue::Undeletable)); QVERIFY(!(mobj.propertyFlags("dynamicProperty") & QScriptValue::SkipInEnumeration)); - QEXPECT_FAIL("", "Flags are wrong", Continue); QVERIFY(mobj.propertyFlags("dynamicProperty") & QScriptValue::QObjectMember); } |