summaryrefslogtreecommitdiffstats
path: root/tests/auto/qscriptvalue
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/qscriptvalue')
-rw-r--r--tests/auto/qscriptvalue/tst_qscriptvalue.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/tests/auto/qscriptvalue/tst_qscriptvalue.cpp b/tests/auto/qscriptvalue/tst_qscriptvalue.cpp
index f2ac385..f454d2e 100644
--- a/tests/auto/qscriptvalue/tst_qscriptvalue.cpp
+++ b/tests/auto/qscriptvalue/tst_qscriptvalue.cpp
@@ -2089,14 +2089,11 @@ void tst_QScriptValue::getSetProperty()
QVERIFY(object.property(foo).strictlyEquals(num));
QVERIFY(object.property("foo").strictlyEquals(num));
- // can't set arguments and length property of function objects
+ // can't set length property of native function objects
{
QScriptValue fun = eng.newFunction(getterSetter, /*length=*/2);
for (int x = 0; x < 2; ++x) {
- QEXPECT_FAIL("", "function.arguments should be null", Continue);
- QVERIFY(fun.property("arguments").isNull());
QVERIFY(fun.property("length").strictlyEquals(QScriptValue(&eng, 2)));
- fun.setProperty("arguments", QScriptValue());
fun.setProperty("length", QScriptValue());
}
}