diff options
author | Kent Hansen <khansen@trolltech.com> | 2009-07-17 09:38:17 (GMT) |
---|---|---|
committer | Kent Hansen <khansen@trolltech.com> | 2009-07-17 09:38:17 (GMT) |
commit | 525251ecded0a57e6b456cc787094a5703d7ff13 (patch) | |
tree | 329e118e56656d4fa3bc8055dab6a8c20ef05333 /tests/auto/qscriptengine | |
parent | 6272ef01f0985fa22262733eddd37c3c39de0a1a (diff) | |
download | Qt-525251ecded0a57e6b456cc787094a5703d7ff13.zip Qt-525251ecded0a57e6b456cc787094a5703d7ff13.tar.gz Qt-525251ecded0a57e6b456cc787094a5703d7ff13.tar.bz2 |
set correct property flags in newFunction()
Diffstat (limited to 'tests/auto/qscriptengine')
-rw-r--r-- | tests/auto/qscriptengine/tst_qscriptengine.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/tests/auto/qscriptengine/tst_qscriptengine.cpp b/tests/auto/qscriptengine/tst_qscriptengine.cpp index 54e6033..d477939 100644 --- a/tests/auto/qscriptengine/tst_qscriptengine.cpp +++ b/tests/auto/qscriptengine/tst_qscriptengine.cpp @@ -269,10 +269,8 @@ void tst_QScriptEngine::newFunction() QCOMPARE(fun.prototype().strictlyEquals(eng.evaluate("Function.prototype")), true); // public prototype should be the one we passed QCOMPARE(fun.property("prototype").strictlyEquals(proto), true); - QEXPECT_FAIL("", "Flags are wrong", Continue); QCOMPARE(fun.propertyFlags("prototype"), QScriptValue::Undeletable); QCOMPARE(proto.property("constructor").strictlyEquals(fun), true); - QEXPECT_FAIL("", "Flags are wrong", Continue); QCOMPARE(proto.propertyFlags("constructor"), QScriptValue::Undeletable | QScriptValue::SkipInEnumeration); |