summaryrefslogtreecommitdiffstats
path: root/tests/auto/qscriptengine/tst_qscriptengine.cpp
diff options
context:
space:
mode:
authorKent Hansen <khansen@trolltech.com>2009-07-17 11:38:17 +0200
committerKent Hansen <khansen@trolltech.com>2009-07-17 11:38:17 +0200
commit525251ecded0a57e6b456cc787094a5703d7ff13 (patch)
tree329e118e56656d4fa3bc8055dab6a8c20ef05333 /tests/auto/qscriptengine/tst_qscriptengine.cpp
parent6272ef01f0985fa22262733eddd37c3c39de0a1a (diff)
set correct property flags in newFunction()
Diffstat (limited to 'tests/auto/qscriptengine/tst_qscriptengine.cpp')
-rw-r--r--tests/auto/qscriptengine/tst_qscriptengine.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/tests/auto/qscriptengine/tst_qscriptengine.cpp b/tests/auto/qscriptengine/tst_qscriptengine.cpp
index 54e60333d0..d477939c2b 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);