summaryrefslogtreecommitdiffstats
path: root/tests/auto
diff options
context:
space:
mode:
authorKent Hansen <khansen@trolltech.com>2009-07-28 12:28:24 (GMT)
committerKent Hansen <khansen@trolltech.com>2009-07-28 12:28:24 (GMT)
commite7a986d9348062297471c2f15b2e577154ebf19c (patch)
tree338f718797721fa5c96db2a133de9bfb1a9f5c70 /tests/auto
parentaec5f2e797aa1e4b44d0713e0f75b456e44c571b (diff)
downloadQt-e7a986d9348062297471c2f15b2e577154ebf19c.zip
Qt-e7a986d9348062297471c2f15b2e577154ebf19c.tar.gz
Qt-e7a986d9348062297471c2f15b2e577154ebf19c.tar.bz2
get rid of test that tests quirk of old back-end
There's no requirement that native function objects should have an arguments property, so don't implement it for now.
Diffstat (limited to 'tests/auto')
-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());
}
}